Changeset 50152 for trunk/src/wp-includes/cron.php
- Timestamp:
- 02/02/2021 06:02:36 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/cron.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cron.php
r50143 r50152 545 545 if ( ! is_array( $args ) ) { 546 546 _deprecated_argument( __FUNCTION__, '3.0.0', __( 'This argument has changed to an array to match the behavior of the other cron functions.' ) ); 547 $args = array_slice( func_get_args(), 1 ); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection547 $args = array_slice( func_get_args(), 1 ); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection 548 548 $wp_error = false; 549 549 } … … 1183 1183 function _set_cron_array( $cron, $wp_error = false ) { 1184 1184 $cron['version'] = 2; 1185 $result = update_option( 'cron', $cron );1185 $result = update_option( 'cron', $cron ); 1186 1186 1187 1187 if ( $wp_error && ! $result ) {
Note: See TracChangeset
for help on using the changeset viewer.