WordPress.org

Make WordPress Core

Changeset 32538


Ignore:
Timestamp:
05/22/2015 04:13:35 AM (6 years ago)
Author:
wonderboymusic
Message:

Add missing doc blocks to author-template.php.

See #32444.

File:
1 edited

Legend:

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

    r32526 r32538  
    1616 * @since 1.5.0
    1717 *
    18  * @uses $authordata The current author's DB object.
     18 * @global object $authordata The current author's DB object.
    1919 *
    2020 * @param string $deprecated Deprecated.
     
    104104 * @link https://codex.wordpress.org/Template_Tags/the_author_meta
    105105 * @since 2.8.0
     106 *
     107 * @global object $authordata The current author's DB object.
     108 *
    106109 * @param string $field selects the field of the users record.
    107110 * @param int $user_id Optional. User ID.
     
    135138
    136139/**
    137  * Retrieve the requested data of the author of the current post.
     140 * Outputs the field from the user's DB object. Defaults to current post's author.
     141 *
    138142 * @link https://codex.wordpress.org/Template_Tags/the_author_meta
     143 *
    139144 * @since 2.8.0
     145 *
    140146 * @param string $field selects the field of the users record.
    141147 * @param int $user_id Optional. User ID.
    142  * @echo string The author's field from the current author's DB object.
    143148 */
    144149function the_author_meta( $field = '', $user_id = false ) {
     
    223228 * @link https://codex.wordpress.org/Template_Tags/the_author_posts_link
    224229 * @since 1.2.0
     230 *
     231 * @global object $authordata The current author's DB object.
     232 *
    225233 * @param string $deprecated Deprecated.
    226  *
    227  * @return false|null
    228234 */
    229235function the_author_posts_link($deprecated = '') {
     
    232238
    233239    global $authordata;
    234     if ( !is_object( $authordata ) )
    235         return false;
     240    if ( ! is_object( $authordata ) ) {
     241        return;
     242    }
     243
    236244    $link = sprintf(
    237245        '<a href="%1$s" title="%2$s" rel="author">%3$s</a>',
     
    255263 *
    256264 * @since 2.1.0
    257  * @uses $wp_rewrite WP_Rewrite
     265 *
     266 * @global WP_Rewrite $wp_rewrite
     267 *
    258268 * @return string The URL to the author's page.
    259269 */
     
    296306 *
    297307 * @since 1.2.0
     308 *
     309 * @global wpdb $wpdb
    298310 *
    299311 * @param string|array $args {
     
    428440 *
    429441 * @since 3.2.0
     442 *
     443 * @global wpdb $wpdb
     444 *
    430445 * @return bool Whether or not we have more than one author
    431446 */
Note: See TracChangeset for help on using the changeset viewer.