WordPress.org

Make WordPress Core

Ticket #10468: 10468.patch

File 10468.patch, 683 bytes (added by johnbillion, 9 years ago)
  • wp-includes/cron.php

     
    130130 * @since 2.1.0
    131131 *
    132132 * @param string $hook Action hook, the execution of which will be unscheduled.
    133  * @param mixed $args,... Optional. Event arguments.
     133 * @param mixed $args Optional. Event arguments.
    134134 */
    135 function wp_clear_scheduled_hook( $hook ) {
    136         $args = array_slice( func_get_args(), 1 );
    137 
     135function wp_clear_scheduled_hook( $hook, $args = array() ) {
    138136        while ( $timestamp = wp_next_scheduled( $hook, $args ) )
    139137                wp_unschedule_event( $timestamp, $hook, $args );
    140138}