Ticket #10468: 10468.patch
File 10468.patch, 683 bytes (added by , 14 years ago) |
---|
-
wp-includes/cron.php
130 130 * @since 2.1.0 131 131 * 132 132 * @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. 134 134 */ 135 function wp_clear_scheduled_hook( $hook ) { 136 $args = array_slice( func_get_args(), 1 ); 137 135 function wp_clear_scheduled_hook( $hook, $args = array() ) { 138 136 while ( $timestamp = wp_next_scheduled( $hook, $args ) ) 139 137 wp_unschedule_event( $timestamp, $hook, $args ); 140 138 }