Changeset 34810 for trunk/tests/phpunit/tests/rewrite/oldSlugRedirect.php
- Timestamp:
- 10/03/2015 08:54:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rewrite/oldSlugRedirect.php
r34802 r34810 20 20 add_filter( 'old_slug_redirect_url', array( $this, 'filter_old_slug_redirect_url' ), 10, 1 ); 21 21 22 global $wp_rewrite;22 $this->set_permalink_structure( '/%postname%/' ); 23 23 24 $wp_rewrite->init();25 $wp_rewrite->set_permalink_structure( '/%postname%/' );26 24 add_rewrite_endpoint( 'custom-endpoint', EP_PERMALINK ); 27 25 add_rewrite_endpoint( 'second-endpoint', EP_PERMALINK, 'custom' ); 28 $wp_rewrite->flush_rules(); 26 27 flush_rewrite_rules(); 29 28 } 30 29
Note: See TracChangeset
for help on using the changeset viewer.