Changeset 34215 for trunk/src/wp-includes/class-wp.php
- Timestamp:
- 09/15/2015 06:53:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp.php
r33734 r34215 262 262 $this->public_query_vars = apply_filters( 'query_vars', $this->public_query_vars ); 263 263 264 foreach ( get_post_types( array(), 'objects' ) as $post_type => $t ) 265 if ( $t->query_var )264 foreach ( get_post_types( array(), 'objects' ) as $post_type => $t ) { 265 if ( is_post_type_viewable( $t ) && $t->query_var ) { 266 266 $post_type_query_vars[$t->query_var] = $post_type; 267 } 268 } 267 269 268 270 foreach ( $this->public_query_vars as $wpvar ) {
Note: See TracChangeset
for help on using the changeset viewer.