Make WordPress Core

Changeset 16938


Ignore:
Timestamp:
12/15/2010 11:27:38 AM (14 years ago)
Author:
nacin
Message:

Don't show extra .0 in _deprecated_argument calls. They should appear in @since docs though.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r16900 r16938  
    437437
    438438    if ( null !== $deprecated  )
    439         _deprecated_argument( __FUNCTION__, '3.1.0' );
     439        _deprecated_argument( __FUNCTION__, '3.1' );
    440440
    441441    $wpdb->update( $wpdb->users, array( $pref => $value ), array( 'ID' => $id ) );
  • trunk/wp-includes/cron.php

    r16690 r16938  
    157157    // Previously this function took the arguments as discrete vars rather than an array like the rest of the API
    158158    if ( !is_array($args) ) {
    159         _deprecated_argument( __FUNCTION__, '3.0.0', __('This argument has changed to an array to match the behavior of the other cron functions.') );
     159        _deprecated_argument( __FUNCTION__, '3.0', __('This argument has changed to an array to match the behavior of the other cron functions.') );
    160160        $args = array_slice( func_get_args(), 1 );
    161161    }
  • trunk/wp-includes/link-template.php

    r16793 r16938  
    951951function get_delete_post_link( $id = 0, $deprecated = '', $force_delete = false ) {
    952952    if ( ! empty( $deprecated ) )
    953         _deprecated_argument( __FUNCTION__, '3.0.0' );
     953        _deprecated_argument( __FUNCTION__, '3.0' );
    954954
    955955    if ( !$post = &get_post( $id ) )
  • trunk/wp-includes/ms-blogs.php

    r16900 r16938  
    424424
    425425    if ( null !== $deprecated  )
    426         _deprecated_argument( __FUNCTION__, '3.1.0' );
     426        _deprecated_argument( __FUNCTION__, '3.1' );
    427427
    428428    switch_to_blog($id);
     
    620620
    621621    if ( null !== $deprecated  )
    622         _deprecated_argument( __FUNCTION__, '3.1.0' );
     622        _deprecated_argument( __FUNCTION__, '3.1' );
    623623
    624624    if ( !in_array( $pref, array( 'site_id', 'domain', 'path', 'registered', 'last_updated', 'public', 'archived', 'mature', 'spam', 'deleted', 'lang_id') ) )
Note: See TracChangeset for help on using the changeset viewer.