Changeset 34870
- Timestamp:
- 10/06/2015 04:01:38 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rewrite/addRewriteRule.php
r34847 r34870 7 7 8 8 public function setUp() { 9 global $wp_rewrite;10 9 parent::setUp(); 11 10 12 $wp_rewrite->init(); 13 $wp_rewrite->set_permalink_structure( '/%postname%/' ); 14 $wp_rewrite->flush_rules(); 15 } 16 17 public function tearDown() { 18 global $wp_rewrite; 19 $wp_rewrite->init(); 20 21 parent::tearDown(); 11 $this->set_permalink_structure( '/%postname%/' ); 22 12 } 23 13
Note: See TracChangeset
for help on using the changeset viewer.