Changeset 28966 for trunk/tests/phpunit/tests/query/conditionals.php
- Timestamp:
- 07/03/2014 01:42:57 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/conditionals.php
r27187 r28966 24 24 25 25 global $wp_rewrite; 26 update_option( 'permalink_structure', '/%year%/%monthnum%/%day%/%postname%/' ); 26 27 $wp_rewrite->init(); 28 $wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); 29 27 30 create_initial_taxonomies(); 28 $GLOBALS['wp_rewrite']->init(); 29 flush_rewrite_rules();31 32 $wp_rewrite->flush_rules(); 30 33 } 31 34 32 35 function tearDown() { 36 global $wp_rewrite; 33 37 parent::tearDown(); 34 $ GLOBALS['wp_rewrite']->init();38 $wp_rewrite->init(); 35 39 } 36 40
Note: See TracChangeset
for help on using the changeset viewer.