WordPress.org

Make WordPress Core

Changeset 46142


Ignore:
Timestamp:
09/15/2019 11:47:38 AM (2 months ago)
Author:
SergeyBiryukov
Message:

Code Modernisation: Replace call_user_func_array() in wp-cron.php with a direct function call.

Props jrf.
See #47678.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-cron.php

    r45562 r46142  
    119119
    120120            if ( $schedule ) {
    121                 $new_args = array( $timestamp, $schedule, $hook, $v['args'] );
    122                 call_user_func_array( 'wp_reschedule_event', $new_args );
     121                wp_reschedule_event( $timestamp, $schedule, $hook, $v['args'] );
    123122            }
    124123
Note: See TracChangeset for help on using the changeset viewer.