Make WordPress Core


Ignore:
Timestamp:
06/03/2020 05:38:56 PM (5 years ago)
Author:
desrosj
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/plugin.php

    r47550 r47902  
    232232    if ( isset( $wp_filter['all'] ) ) {
    233233        $wp_current_filter[] = $tag;
    234         $all_args            = func_get_args();
     234        $all_args            = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
    235235        _wp_call_all_hook( $all_args );
    236236    }
     
    454454    if ( isset( $wp_filter['all'] ) ) {
    455455        $wp_current_filter[] = $tag;
    456         $all_args            = func_get_args();
     456        $all_args            = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
    457457        _wp_call_all_hook( $all_args );
    458458    }
     
    527527    if ( isset( $wp_filter['all'] ) ) {
    528528        $wp_current_filter[] = $tag;
    529         $all_args            = func_get_args();
     529        $all_args            = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
    530530        _wp_call_all_hook( $all_args );
    531531    }
Note: See TracChangeset for help on using the changeset viewer.