Changeset 37599 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 05/31/2016 12:53:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r37593 r37599 1184 1184 * (b) the first parameter shares no keys with the default array (ie, it's a list of taxonomies) 1185 1185 */ 1186 $key_intersect = array_intersect_key( $term_query->query_var_defaults, (array) $args ); 1186 $_args = wp_parse_args( $args ); 1187 $key_intersect = array_intersect_key( $term_query->query_var_defaults, (array) $_args ); 1187 1188 $do_legacy_args = $deprecated || empty( $key_intersect ); 1188 1189 1189 1190 if ( $do_legacy_args ) { 1190 1191 $taxonomies = (array) $args; 1191 $args = $deprecated;1192 $args = wp_parse_args( $deprecated ); 1192 1193 $args['taxonomy'] = $taxonomies; 1193 } elseif ( isset( $args['taxonomy'] ) && null !== $args['taxonomy'] ) { 1194 $args['taxonomy'] = (array) $args['taxonomy']; 1194 } else { 1195 $args = wp_parse_args( $args ); 1196 if ( isset( $args['taxonomy'] ) && null !== $args['taxonomy'] ) { 1197 $args['taxonomy'] = (array) $args['taxonomy']; 1198 } 1195 1199 } 1196 1200
Note: See TracChangeset
for help on using the changeset viewer.