WordPress.org

Make WordPress Core

Changeset 32526


Ignore:
Timestamp:
05/21/2015 08:09:44 PM (6 years ago)
Author:
wonderboymusic
Message:

In author-template.php, clarify/add some return docs.

See #32444.

File:
1 edited

Legend:

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

    r32116 r32526  
    1919 *
    2020 * @param string $deprecated Deprecated.
    21  * @return string The author's display name.
     21 * @return string|null The author's display name.
    2222 */
    2323function get_the_author($deprecated = '') {
     
    5454 * @param string $deprecated Deprecated.
    5555 * @param string $deprecated_echo Deprecated. Use get_the_author(). Echo the string or return it.
    56  * @return string The author's display name, from get_the_author().
     56 * @return string|null The author's display name, from get_the_author().
    5757 */
    5858function the_author( $deprecated = '', $deprecated_echo = true ) {
     
    7171 * @since 2.8.0
    7272 *
    73  * @return string The author's display name.
     73 * @return string|null The author's display name.
    7474 */
    7575function get_the_modified_author() {
     
    8989
    9090/**
    91  * Display the name of the author who last edited the current post.
     91 * Display the name of the author who last edited the current post,
     92 * if the author's ID is available.
    9293 *
    9394 * @since 2.8.0
    9495 *
    9596 * @see get_the_author()
    96  * @return string The author's display name, from get_the_modified_author().
    9797 */
    9898function the_modified_author() {
     
    163163 * If the author has a home page set, return an HTML link, otherwise just return the
    164164 * author's name.
     165 *
     166 * @return string|null An HTML link if the author's url exist in user meta,
     167 *                     else the result of get_the_author().
    165168 */
    166169function get_the_author_link() {
     
    221224 * @since 1.2.0
    222225 * @param string $deprecated Deprecated.
     226 *
     227 * @return false|null
    223228 */
    224229function the_author_posts_link($deprecated = '') {
Note: See TracChangeset for help on using the changeset viewer.