Make WordPress Core


Ignore:
Timestamp:
01/09/2010 10:03:55 AM (14 years ago)
Author:
westi
Message:

Add missing version numbers to _deprecated_argument() calls.
Remove deprecated argument from xfn_check() calls.
Pass version number to deprecated_file_included, deprecated_function_run and deprecated_argument_run actions.
Fixes #11386 props nacin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/author-template.php

    r12598 r12680  
    2525
    2626    if ( !empty( $deprecated ) )
    27         _deprecated_argument( __FUNCTION__, '0.0' );
     27        _deprecated_argument( __FUNCTION__, '2.1' );
    2828
    2929    return apply_filters('the_author', is_object($authordata) ? $authordata->display_name : null);
     
    5050 */
    5151function the_author( $deprecated = '', $deprecated_echo = true ) {
    52     if ( !empty( $deprecated ) || $deprecated_echo !== true )
    53         _deprecated_argument( __FUNCTION__, '1.5', $deprecated_echo !== true ? __('Use get_the_author() instead if you do not want the value echoed.') : null );
     52    if ( !empty( $deprecated ) )
     53        _deprecated_argument( __FUNCTION__, '2.1' );
     54    if ( $deprecated_echo !== true )
     55        _deprecated_argument( __FUNCTION__, '1.5', __('Use get_the_author() instead if you do not want the value echoed.') );
    5456    if ( $deprecated_echo )
    5557        echo get_the_author();
     
    185187function the_author_posts_link($deprecated = '') {
    186188    if ( !empty( $deprecated ) )
    187         _deprecated_argument( __FUNCTION__, '0.0' );
     189        _deprecated_argument( __FUNCTION__, '2.1' );
    188190
    189191    global $authordata;
Note: See TracChangeset for help on using the changeset viewer.