Changeset 34215 for trunk/tests/phpunit/includes/utils.php
- Timestamp:
- 09/15/2015 06:53:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/utils.php
r33123 r34215 363 363 364 364 foreach ( get_post_types( array() , 'objects' ) as $t ) { 365 if ( ! empty( $t->query_var ) )365 if ( is_post_type_viewable( $t ) && ! empty( $t->query_var ) ) 366 366 $GLOBALS['wp']->add_query_var( $t->query_var ); 367 367 }
Note: See TracChangeset
for help on using the changeset viewer.