mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 22:57:20 +00:00
Fix typo in _deprecated_argument() and start using _deprecated_argument() in wp-includes files. See #11386 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12537 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -135,8 +135,10 @@ function wp_unschedule_event( $timestamp, $hook, $args = array() ) {
|
||||
function wp_clear_scheduled_hook( $hook, $args = array() ) {
|
||||
// Backward compatibility
|
||||
// Previously this function took the arguments as discrete vars rather than an array like the rest of the API
|
||||
if ( !is_array($args) )
|
||||
if ( !is_array($args) ) {
|
||||
_deprecated_argument(__FUNCTION__, 'args', '3.0.0', __('This argument has changed to an array so as to match with the behaviour of all the other cron functions.') );
|
||||
$args = array_slice( func_get_args(), 1 );
|
||||
}
|
||||
|
||||
while ( $timestamp = wp_next_scheduled( $hook, $args ) )
|
||||
wp_unschedule_event( $timestamp, $hook, $args );
|
||||
|
||||
Reference in New Issue
Block a user