WordPress.org

Make WordPress Core

Ticket #18828: 18828.4.patch

File 18828.4.patch, 874 bytes (added by doublesharp, 7 years ago)

Pass $object_id_array instead of $object_ids to filter

  • wp-includes/taxonomy.php

     
    26952695                $order = 'ASC';
    26962696
    26972697        $taxonomy_array = $taxonomies;
     2698        $object_id_array = $object_ids;
    26982699        $taxonomies = "'" . implode("', '", $taxonomies) . "'";
    26992700        $object_ids = implode(', ', $object_ids);
    27002701
     
    27762777         * @param array     $args           An array of arguments for retrieving terms for the given object(s).
    27772778         *                                  See {@see wp_get_object_terms()} for details.
    27782779         */
    2779         $terms = apply_filters( 'get_object_terms', $terms, $object_ids, $taxonomy_array, $args );
     2780        $terms = apply_filters( 'get_object_terms', $terms, $object_id_array, $taxonomy_array, $args );
    27802781
    27812782        /**
    27822783         * Filter the terms for a given object or objects.