General: Continuing to work towards a passing PHP Compatibility scan.
This is a final pass to fix PHP compatibiilty issues in the codebase with code changes or adding `phpcs:ignore` comments. With this change, all PHP compatibility warnings and errors without specific tickets have been addressed (see #49810 and #41750). Props desrosj, johnbillion, jrf. See #49922. Built from https://develop.svn.wordpress.org/trunk@47902 git-svn-id: http://core.svn.wordpress.org/trunk@47676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -231,7 +231,7 @@ function apply_filters_ref_array( $tag, $args ) {
|
||||
// Do 'all' actions first.
|
||||
if ( isset( $wp_filter['all'] ) ) {
|
||||
$wp_current_filter[] = $tag;
|
||||
$all_args = func_get_args();
|
||||
$all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
|
||||
_wp_call_all_hook( $all_args );
|
||||
}
|
||||
|
||||
@@ -453,7 +453,7 @@ function do_action( $tag, ...$arg ) {
|
||||
// Do 'all' actions first.
|
||||
if ( isset( $wp_filter['all'] ) ) {
|
||||
$wp_current_filter[] = $tag;
|
||||
$all_args = func_get_args();
|
||||
$all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
|
||||
_wp_call_all_hook( $all_args );
|
||||
}
|
||||
|
||||
@@ -526,7 +526,7 @@ function do_action_ref_array( $tag, $args ) {
|
||||
// Do 'all' actions first.
|
||||
if ( isset( $wp_filter['all'] ) ) {
|
||||
$wp_current_filter[] = $tag;
|
||||
$all_args = func_get_args();
|
||||
$all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
|
||||
_wp_call_all_hook( $all_args );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user