Make WordPress Core

Changeset 40899


Ignore:
Timestamp:
06/13/2017 02:32:15 AM (7 years ago)
Author:
DrewAPicture
Message:

Docs: Clarify that get_the_author_meta() can also return an empty string.

h/t aurovrata.
See #41017

File:
1 edited

Legend:

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

    r40334 r40899  
    120120 * @param string $field selects the field of the users record.
    121121 * @param int $user_id Optional. User ID.
    122  * @return string The author's field from the current author's DB object.
     122 * @return string The author's field from the current author's DB object, otherwise an empty string.
    123123 */
    124124function get_the_author_meta( $field = '', $user_id = false ) {
Note: See TracChangeset for help on using the changeset viewer.