Make WordPress Core


Ignore:
Timestamp:
03/06/2015 01:17:09 PM (10 years ago)
Author:
boonebgorges
Message:

Ensure that an array of object IDs is passed to the 'get_object_terms' filter.

Originally introduced in [31581].

Props doublesharp.
Fixes #18828.

File:
1 edited

Legend:

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

    r31638 r31639  
    26962696
    26972697    $taxonomy_array = $taxonomies;
     2698    $object_id_array = $object_ids;
    26982699    $taxonomies = "'" . implode("', '", $taxonomies) . "'";
    26992700    $object_ids = implode(', ', $object_ids);
     
    27712772     * @since 4.2.0
    27722773     *
    2773      * @param array     $terms          An array of terms for the given object or objects.
    2774      * @param int|array $object_ids     Object ID or array of IDs.
    2775      * @param array     $taxonomy_array Array of taxonomies from which `$terms` were retrieved.
    2776      * @param array     $args           An array of arguments for retrieving terms for the given object(s).
    2777      *                                  See {@see wp_get_object_terms()} for details.
    2778      */
    2779     $terms = apply_filters( 'get_object_terms', $terms, $object_ids, $taxonomy_array, $args );
     2774     * @param array $terms           An array of terms for the given object or objects.
     2775     * @param array $object_id_array Array of object IDs for which `$terms` were retrieved.
     2776     * @param array $taxonomy_array Array of taxonomies from which `$terms` were retrieved.
     2777     * @param array $args            An array of arguments for retrieving terms for the given object(s).
     2778     *                               See {@see wp_get_object_terms()} for details.
     2779     */
     2780    $terms = apply_filters( 'get_object_terms', $terms, $object_id_array, $taxonomy_array, $args );
    27802781
    27812782    /**
Note: See TracChangeset for help on using the changeset viewer.