Make WordPress Core

Changeset 29475


Ignore:
Timestamp:
08/12/2014 11:47:23 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Additional @return clarifications for get_the_terms(), get_the_tag_list(), and get_the_term_list().

see #29183.

File:
1 edited

Legend:

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

    r29467 r29475  
    11681168 * @param string $after Optional. After tags.
    11691169 * @param int $id Optional. Post ID. Defaults to the current post.
    1170  * @return string|bool|WP_Error A list of tags on success, false or WP_Error on failure.
     1170 * @return string|bool|WP_Error A list of tags on success, false if there are no terms, WP_Error on failure.
    11711171 */
    11721172function get_the_tag_list( $before = '', $sep = '', $after = '', $id = 0 ) {
     
    12411241 * @param int|object $post Post ID or object.
    12421242 * @param string $taxonomy Taxonomy name.
    1243  * @return array|bool|WP_Error Array of term objects on success, false if there are no terms, WP_Error on failure.
     1243 * @return array|bool|WP_Error Array of term objects on success, false if there are no terms
     1244 *                             or the post does not exist, WP_Error on failure.
    12441245 */
    12451246function get_the_terms( $post, $taxonomy ) {
     
    12801281 * @param string $sep Optional. Separate items using this.
    12811282 * @param string $after Optional. After list.
    1282  * @return string|bool|WP_Error A list of terms on success, false or WP_Error on failure.
     1283 * @return string|bool|WP_Error A list of terms on success, false if there are no terms, WP_Error on failure.
    12831284 */
    12841285function get_the_term_list( $id, $taxonomy, $before = '', $sep = '', $after = '' ) {
Note: See TracChangeset for help on using the changeset viewer.