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:
@@ -402,7 +402,7 @@ function wp_clear_scheduled_hook( $hook, $args = array() ) {
|
||||
// Previously, this function took the arguments as discrete vars rather than an array like the rest of the API.
|
||||
if ( ! is_array( $args ) ) {
|
||||
_deprecated_argument( __FUNCTION__, '3.0.0', __( 'This argument has changed to an array to match the behavior of the other cron functions.' ) );
|
||||
$args = array_slice( func_get_args(), 1 );
|
||||
$args = array_slice( func_get_args(), 1 ); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user