Changeset 35680
- Timestamp:
- 11/18/2015 07:58:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy-functions.php
r35585 r35680 385 385 } 386 386 387 if ( false !== $args['query_var'] && false !== $args['public'] && ! empty( $wp ) ) { 387 // Non-public taxonomies should not register query vars, except in the admin. 388 if ( false !== $args['query_var'] && ( is_admin() || false !== $args['public'] ) && ! empty( $wp ) ) { 388 389 if ( true === $args['query_var'] ) 389 390 $args['query_var'] = $taxonomy;
Note: See TracChangeset
for help on using the changeset viewer.