WordPress.org

Make WordPress Core

Changeset 30993


Ignore:
Timestamp:
12/26/2014 09:29:00 PM (5 years ago)
Author:
boonebgorges
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.

Props tmatsuur, DrewAPicture.
Fixes #30843.

File:
1 edited

Legend:

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

    r30985 r30993  
    43394339     *
    43404340     * @since 3.1.0
     4341     * @since 4.1.0 Introduced the `$resource_type` parameter.
    43414342     *
    43424343     * @param array  $ancestors     An array of object ancestors.
     
    43454346     * @param string $resource_type Type of resource $object_type is.
    43464347     */
    4347     return apply_filters( 'get_ancestors', $ancestors, $object_id, $object_type );
     4348    return apply_filters( 'get_ancestors', $ancestors, $object_id, $object_type, $resource_type );
    43484349}
    43494350
Note: See TracChangeset for help on using the changeset viewer.