WordPress.org

Make WordPress Core

Changeset 29467


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.

Location:
trunk/src/wp-includes
Files:
2 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 );
  • trunk/src/wp-includes/taxonomy.php

    r29234 r29467  
    430430     * @param string       $taxonomy    Taxonomy slug.
    431431     * @param array|string $object_type Object type or array of object types.
    432      * @param array|string $args        Array or string of taxonomy registration arguments.
     432     * @param array        $args        Array of taxonomy registration arguments.
    433433     */
    434434    do_action( 'registered_taxonomy', $taxonomy, $object_type, $args );
Note: See TracChangeset for help on using the changeset viewer.