Changeset 28964 for trunk/tests/phpunit/tests/canonical.php
- Timestamp:
- 07/03/2014 12:49:32 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/canonical.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/canonical.php
r26091 r28964 20 20 21 21 function setUp() { 22 global $wp_rewrite; 23 22 24 parent::setUp(); 23 25 … … 26 28 update_option( 'posts_per_page', 5 ); 27 29 28 update_option( 'permalink_structure', $this->structure ); 30 $wp_rewrite->init(); 31 $wp_rewrite->set_permalink_structure( $this->structure ); 32 29 33 create_initial_taxonomies(); 30 $GLOBALS['wp_rewrite']->init(); 31 flush_rewrite_rules();34 35 $wp_rewrite->flush_rules(); 32 36 33 37 $this->old_current_user = get_current_user_id();
Note: See TracChangeset
for help on using the changeset viewer.