Changeset 7507 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 03/24/2008 10:43:20 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r7491 r7507 35 35 * @uses $wp_taxonomies 36 36 * 37 * @param string $object_type Name of the type of taxonomy object37 * @param array|string $object_type Name of the type of taxonomy object 38 38 * @return array The names of all taxonomy of $object_type. 39 39 */ … … 43 43 $taxonomies = array(); 44 44 foreach ( $wp_taxonomies as $taxonomy ) { 45 if ( $object_type === $taxonomy->object_type)45 if ( in_array($object_type, (array) $taxonomy->object_type) ) 46 46 $taxonomies[] = $taxonomy->name; 47 47 } … … 142 142 * 143 143 * @param string $taxonomy Name of taxonomy object 144 * @param string $object_type Name of the object type for the taxonomy object.144 * @param array|string $object_type Name of the object type for the taxonomy object. 145 145 * @param array|string $args See above description for the two keys values. 146 146 */ … … 1557 1557 * 1558 1558 * @param int|array $object_ids Single or list of term object ID(s) 1559 * @param string $object_type The taxonomy object type1559 * @param array|string $object_type The taxonomy object type 1560 1560 */ 1561 1561 function clean_object_term_cache($object_ids, $object_type) { … … 1653 1653 * 1654 1654 * @param string|array $object_ids Single or list of term object ID(s) 1655 * @param string $object_type The taxonomy object type1655 * @param array|string $object_type The taxonomy object type 1656 1656 * @return null|bool Null value is given with empty $object_ids. False if 1657 1657 */
Note: See TracChangeset
for help on using the changeset viewer.