WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/11/2014 09:16:52 PM (6 years ago)
Author:
johnbillion
Message:

Docblock corrections for get_the_terms() function and corresponding filter, and registered_taxonomy action. Fixes #29183.

File:
1 edited

Legend:

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

    r28633 r29467  
    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 or WP_Error on failure.
     1243 * @return array|bool|WP_Error Array of term objects on success, false if there are no terms, WP_Error on failure.
    12441244 */
    12451245function get_the_terms( $post, $taxonomy ) {
     
    12581258     * @since 3.1.0
    12591259     *
    1260      * @param array  $terms    List of attached terms.
    1261      * @param int    $post_id  Post ID.
    1262      * @param string $taxonomy Name of the taxonomy.
     1260     * @param array|WP_Error $terms    List of attached terms, or WP_Error on failure.
     1261     * @param int            $post_id  Post ID.
     1262     * @param string         $taxonomy Name of the taxonomy.
    12631263     */
    12641264    $terms = apply_filters( 'get_the_terms', $terms, $post->ID, $taxonomy );
Note: See TracChangeset for help on using the changeset viewer.