Changeset 35333 for trunk/src/wp-includes/class-wp.php
- Timestamp:
- 10/21/2015 04:53:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp.php
r35205 r35333 312 312 if ( ! is_admin() ) { 313 313 foreach ( get_taxonomies( array( 'public' => false ), 'objects' ) as $taxonomy => $t ) { 314 // Check first for taxonomy-specific query_var. 315 if ( $t->query_var && isset( $this->query_vars[ $t->query_var ] ) ) { 316 unset( $this->query_vars[ $t->query_var ] ); 317 } 318 319 // Next, check the 'taxonomy' query_var. 314 /* 315 * Disallow when set to the 'taxonomy' query var. 316 * Non-public taxonomies cannot register custom query vars. See register_taxonomy(). 317 */ 320 318 if ( isset( $this->query_vars['taxonomy'] ) && $taxonomy === $this->query_vars['taxonomy'] ) { 321 319 unset( $this->query_vars['taxonomy'], $this->query_vars['term'] );
Note: See TracChangeset
for help on using the changeset viewer.