Make WordPress Core

Ticket #38258: 38258.2.patch

File 38258.2.patch, 1.7 KB (added by choongsavvii, 8 years ago)
  • src/wp-includes/author-template.php

     
    111111}
    112112
    113113/**
    114  * Retrieve the requested data of the author of the current post.
    115  * @link https://codex.wordpress.org/Template_Tags/the_author_meta
     114 * Retrieve the requested data of the author of the current post. Valid values
     115 * for the $field parameter:
     116 *
     117 * - admin_color
     118 * - aim
     119 * - comment_shortcuts
     120 * - description
     121 * - display_name
     122 * - first_name
     123 * - ID
     124 * - jabber
     125 * - last_name
     126 * - nickname
     127 * - plugins_last_view
     128 * - plugins_per_page
     129 * - rich_editing
     130 * - user_activation_key
     131 * - user_description
     132 * - user_email
     133 * - user_firstname
     134 * - user_lastname
     135 * - user_level
     136 * - user_login
     137 * - user_nicename
     138 * - user_pass
     139 * - user_registered
     140 * - user_status
     141 * - user_url
     142 * - yim
     143 *
    116144 * @since 2.8.0
    117145 *
    118146 * @global object $authordata The current author's DB object.
     
    154182/**
    155183 * Outputs the field from the user's DB object. Defaults to current post's author.
    156184 *
    157  * @link https://codex.wordpress.org/Template_Tags/the_author_meta
    158  *
    159185 * @since 2.8.0
    160186 *
    161  * @param string $field selects the field of the users record.
    162  * @param int $user_id Optional. User ID.
     187 * @param string $field   Selects the field of the users record. See get_the_author_meta()
     188 *                        for the list of possible fields.
     189 * @param int    $user_id Optional. User ID.
     190 *
     191 * @see get_the_author_meta()
    163192 */
    164193function the_author_meta( $field = '', $user_id = false ) {
    165194        $author_meta = get_the_author_meta( $field, $user_id );