Changeset 34810 for trunk/tests/phpunit/tests/rewrite.php
- Timestamp:
- 10/03/2015 08:54:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rewrite.php
r34708 r34810 10 10 11 11 function setUp() { 12 global $wp_rewrite;13 12 parent::setUp(); 14 13 15 // Need rewrite rules in place to use url_to_postid16 $wp_rewrite->init();17 $wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' );18 19 14 create_initial_taxonomies(); 20 15 21 $ wp_rewrite->flush_rules();16 $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); 22 17 23 18 $this->home_url = get_option( 'home' );
Note: See TracChangeset
for help on using the changeset viewer.