Make WordPress Core


Ignore:
Timestamp:
12/24/2009 11:12:04 AM (14 years ago)
Author:
westi
Message:

Fix typo in _deprecated_argument() and start using _deprecated_argument() in wp-includes files. See #11386 props nacin.

File:
1 edited

Legend:

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

    r12462 r12537  
    136136    // Backward compatibility
    137137    // Previously this function took the arguments as discrete vars rather than an array like the rest of the API
    138     if ( !is_array($args) )
     138    if ( !is_array($args) ) {
     139        _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.') );
    139140        $args = array_slice( func_get_args(), 1 );
     141    }
    140142
    141143    while ( $timestamp = wp_next_scheduled( $hook, $args ) )
Note: See TracChangeset for help on using the changeset viewer.