Make WordPress Core


Ignore:
Timestamp:
12/24/2009 11:12:04 AM (15 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/author-template.php

    r12284 r12537  
    4242 *
    4343 * @param string $deprecated Deprecated.
    44  * @param string $deprecated_echo Echo the string or return it.
     44 * @param string $deprecated_echo Deprecated. Use get_the_author(). Echo the string or return it.
    4545 * @return string The author's display name, from get_the_author().
    4646 */
    4747function the_author($deprecated = '', $deprecated_echo = true) {
     48    if ( !empty($deprecated) )
     49        _deprecated_argument(__FUNCTION__, 'deprecated', '1.5');
     50    if ( $deprecated_echo !== true )
     51        _deprecated_argument(__FUNCTION__, 'deprecated_echo', '1.5', __('Use get_the_author() instead if you do not want the value echoed.'));
    4852    if ( $deprecated_echo )
    4953        echo get_the_author();
     
    178182 */
    179183function the_author_posts_link($deprecated = '') {
     184    if ( !empty( $deprecated ) )
     185        _deprecated_argument(__FUNCTION__, 'deprecated', '0.0');
     186
    180187    global $authordata;
    181188    $link = sprintf(
Note: See TracChangeset for help on using the changeset viewer.