mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Code Modernisation: Replace call_user_func_array()
in wp-cron.php
with a direct function call.
Props jrf. See #47678. Built from https://develop.svn.wordpress.org/trunk@46142 git-svn-id: http://core.svn.wordpress.org/trunk@45954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c32fb1dbee
commit
3daef6260b
@ -118,8 +118,7 @@ foreach ( $crons as $timestamp => $cronhooks ) {
|
||||
$schedule = $v['schedule'];
|
||||
|
||||
if ( $schedule ) {
|
||||
$new_args = array( $timestamp, $schedule, $hook, $v['args'] );
|
||||
call_user_func_array( 'wp_reschedule_event', $new_args );
|
||||
wp_reschedule_event( $timestamp, $schedule, $hook, $v['args'] );
|
||||
}
|
||||
|
||||
wp_unschedule_event( $timestamp, $hook, $v['args'] );
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.3-alpha-46141';
|
||||
$wp_version = '5.3-alpha-46142';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user