Make WordPress Core

Changeset 11142


Ignore:
Timestamp:
04/30/2009 07:55:29 PM (16 years ago)
Author:
ryan
Message:

Use correct var. Update phpdoc. Props MichaelH, coffee2code. fixes #8776

File:
1 edited

Legend:

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

    r11138 r11142  
    8484 * @link http://codex.wordpress.org/Template_Tags/the_author_meta
    8585 * @since 2.8.0
     86 * @uses $authordata The current author's DB object (if $user_id not specified).
    8687 * @param string $field selects the field of the users record.
     88 * @param int $user_id Optional. User ID.
    8789 * @return string The author's field from the current author's DB object.
    8890 */
     
    9193        global $authordata;
    9294    else
    93         $authordata = get_userdata( $auth_id );
     95        $authordata = get_userdata( $user_id );
    9496
    9597    $field = strtolower($field);
     
    111113 * @since 2.8.0
    112114 * @param string $field selects the field of the users record.
     115 * @param int $user_id Optional. User ID.
    113116 * @echo string The author's field from the current author's DB object.
    114117 */
Note: See TracChangeset for help on using the changeset viewer.