Changeset 40513 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 04/21/2017 07:13:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r40353 r40513 1842 1842 $args = wp_parse_args( $args ); 1843 1843 1844 /* 1845 * When one or more queried taxonomies is registered with an 'args' array, 1846 * those params override the `$args` passed to this function. 1847 */ 1848 $terms = array(); 1849 if ( count( $taxonomies ) > 1 ) { 1850 foreach ( $taxonomies as $index => $taxonomy ) { 1851 $t = get_taxonomy( $taxonomy ); 1852 if ( isset( $t->args ) && is_array( $t->args ) && $args != array_merge( $args, $t->args ) ) { 1853 unset( $taxonomies[ $index ] ); 1854 $terms = array_merge( $terms, wp_get_object_terms( $object_ids, $taxonomy, array_merge( $args, $t->args ) ) ); 1855 } 1856 } 1857 } else { 1858 $t = get_taxonomy( $taxonomies[0] ); 1859 if ( isset( $t->args ) && is_array( $t->args ) ) { 1860 $args = array_merge( $args, $t->args ); 1861 } 1862 } 1863 1844 1864 $args['taxonomy'] = $taxonomies; 1845 1865 $args['object_ids'] = $object_ids; 1846 1866 1847 $terms = get_terms( $args);1867 $terms = array_merge( $terms, get_terms( $args ) ); 1848 1868 1849 1869 /**
Note: See TracChangeset
for help on using the changeset viewer.