src/wp-includes/rewrite.php 1 location
|
@@ 536-539 (lines=4) @@
|
| 533 |
|
$request = $url; |
| 534 |
|
$post_type_query_vars = array(); |
| 535 |
|
|
| 536 |
|
foreach ( get_post_types( array() , 'objects' ) as $post_type => $t ) { |
| 537 |
|
if ( ! empty( $t->query_var ) ) |
| 538 |
|
$post_type_query_vars[ $t->query_var ] = $post_type; |
| 539 |
|
} |
| 540 |
|
|
| 541 |
|
// Look for matches. |
| 542 |
|
$request_match = $request; |
src/wp-includes/class-wp.php 1 location
|
@@ 296-300 (lines=5) @@
|
| 293 |
|
*/ |
| 294 |
|
$this->public_query_vars = apply_filters( 'query_vars', $this->public_query_vars ); |
| 295 |
|
|
| 296 |
|
foreach ( get_post_types( array(), 'objects' ) as $post_type => $t ) { |
| 297 |
|
if ( is_post_type_viewable( $t ) && $t->query_var ) { |
| 298 |
|
$post_type_query_vars[$t->query_var] = $post_type; |
| 299 |
|
} |
| 300 |
|
} |
| 301 |
|
|
| 302 |
|
foreach ( $this->public_query_vars as $wpvar ) { |
| 303 |
|
if ( isset( $this->extra_query_vars[$wpvar] ) ) |