WordPress.org

Make WordPress Core

Changeset 33393


Ignore:
Timestamp:
07/23/2015 07:44:49 AM (6 years ago)
Author:
DrewAPicture
Message:

Docs: Correct the possible return types and corresponding descriptions for wp_get_post_terms().

Props adamkheckler for the initial patch.
Fixes #32950.

File:
1 edited

Legend:

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

    r33296 r33393  
    30143014 * @param string $taxonomy Optional. The taxonomy for which to retrieve terms. Default 'post_tag'.
    30153015 * @param array  $args     Optional. {@link wp_get_object_terms()} arguments. Default empty array.
    3016  * @return array List of post tags.
     3016 * @return array|WP_Error  List of post terms or empty array if no terms were found. WP_Error object
     3017 *                         if `$taxonomy` doesn't exist.
    30173018 */
    30183019function wp_get_post_terms( $post_id = 0, $taxonomy = 'post_tag', $args = array() ) {
Note: See TracChangeset for help on using the changeset viewer.