Changeset 34810 for trunk/tests/phpunit/includes/testcase.php
- Timestamp:
- 10/03/2015 08:54:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r34807 r34810 51 51 $this->reset_taxonomies(); 52 52 $this->reset_post_statuses(); 53 $this-> reset_permalinks();53 $this->set_permalink_structure(); 54 54 } 55 55 … … 654 654 * 655 655 * @global WP_Rewrite $wp_rewrite 656 */ 657 public function reset_permalinks() { 656 * 657 * @param string $structure Optional. Permalink structure to set. Default empty. 658 */ 659 public function set_permalink_structure( $structure = '' ) { 658 660 global $wp_rewrite; 659 661 660 662 $wp_rewrite->init(); 661 $wp_rewrite->set_permalink_structure( '');663 $wp_rewrite->set_permalink_structure( $structure ); 662 664 $wp_rewrite->flush_rules(); 663 665 }
Note: See TracChangeset
for help on using the changeset viewer.