Changeset 31581
- Timestamp:
- 02/27/2015 08:30:13 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r31532 r31581 2694 2694 $order = 'ASC'; 2695 2695 2696 $taxonomy_array = $taxonomies; 2696 2697 $taxonomies = "'" . implode("', '", $taxonomies) . "'"; 2697 2698 $object_ids = implode(', ', $object_ids); … … 2763 2764 $terms = array_values( array_unique( $terms ) ); 2764 2765 } 2766 2765 2767 /** 2766 2768 * Filter the terms for a given object or objects. 2767 2769 * 2770 * @since 4.2.0 2771 * 2772 * @param array $terms An array of terms for the given object or objects. 2773 * @param int|array $object_ids Object ID or array of IDs. 2774 * @param array $taxonomy_array Array of taxonomies from which `$terms` were retrieved. 2775 * @param array $args An array of arguments for retrieving terms for the given object(s). 2776 * See {@see wp_get_object_terms()} for details. 2777 */ 2778 $terms = apply_filters( 'get_object_terms', $terms, $object_ids, $taxonomy_array, $args ); 2779 2780 /** 2781 * Filter the terms for a given object or objects. 2782 * 2783 * The `$taxonomies` parameter passed to this filter is formatted as a SQL fragment. The 2784 * {@see 'get_object_terms'} filter is recommended as an alternative. 2785 * 2768 2786 * @since 2.8.0 2769 2787 * 2770 * @param array 2771 * @param array|int$object_ids Object ID or array of IDs.2772 * @param array|string $taxonomies A taxonomy or array of taxonomies.2773 * @param array $args An array of arguments for retrieving terms for2774 * the given object(s).2788 * @param array $terms An array of terms for the given object or objects. 2789 * @param int|array $object_ids Object ID or array of IDs. 2790 * @param string $taxonomies SQL-formatted (comma-separated and quoted) list of taxonomy names. 2791 * @param array $args An array of arguments for retrieving terms for the given object(s). 2792 * See {@see wp_get_object_terms()} for details. 2775 2793 */ 2776 2794 return apply_filters( 'wp_get_object_terms', $terms, $object_ids, $taxonomies, $args );
Note: See TracChangeset
for help on using the changeset viewer.