WordPress.org

Make WordPress Core

Changeset 31084 for branches/4.1


Ignore:
Timestamp:
01/08/2015 06:09:56 AM (6 years ago)
Author:
jorbin
Message:

Pass $resource_type to 'get_ancestors' filter.

The $resource_type argument was added to the get_ancestors() function in
[30141]. In that changeset, the documentation for the filter was updated to
indicate that it would receive $resource_type as a param, but the filter
itself was not updated accordingly.

Merges [30993] to 4.1 branch

Props tmatsuur, DrewAPicture.
Fixes #30843.

Location:
branches/4.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1

  • branches/4.1/src/wp-includes/taxonomy.php

    r30959 r31084  
    43374337     *
    43384338     * @since 3.1.0
     4339     * @since 4.1.0 Introduced the `$resource_type` parameter.
    43394340     *
    43404341     * @param array  $ancestors     An array of object ancestors.
     
    43434344     * @param string $resource_type Type of resource $object_type is.
    43444345     */
    4345     return apply_filters( 'get_ancestors', $ancestors, $object_id, $object_type );
     4346    return apply_filters( 'get_ancestors', $ancestors, $object_id, $object_type, $resource_type );
    43464347}
    43474348
Note: See TracChangeset for help on using the changeset viewer.