Tests: Update Tests_Rewrite_AddRewriteRule->setUp()
to use the new set_permalink_structure()
helper.
See #33968. git-svn-id: https://develop.svn.wordpress.org/trunk@34870 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
81fed4b639
commit
3aca4edffa
@ -6,19 +6,9 @@
|
||||
class Tests_Rewrite_AddRewriteRule extends WP_UnitTestCase {
|
||||
|
||||
public function setUp() {
|
||||
global $wp_rewrite;
|
||||
parent::setUp();
|
||||
|
||||
$wp_rewrite->init();
|
||||
$wp_rewrite->set_permalink_structure( '/%postname%/' );
|
||||
$wp_rewrite->flush_rules();
|
||||
}
|
||||
|
||||
public function tearDown() {
|
||||
global $wp_rewrite;
|
||||
$wp_rewrite->init();
|
||||
|
||||
parent::tearDown();
|
||||
$this->set_permalink_structure( '/%postname%/' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user