Make sure permalink structure is consistent when running query tests.
See #28706. git-svn-id: https://develop.svn.wordpress.org/trunk@28967 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f23a5ef832
commit
26aa4e4e7f
|
@ -2,6 +2,18 @@
|
|||
|
||||
class Tests_Query extends WP_UnitTestCase {
|
||||
|
||||
function setUp() {
|
||||
global $wp_rewrite;
|
||||
parent::setUp();
|
||||
|
||||
$wp_rewrite->init();
|
||||
$wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' );
|
||||
|
||||
create_initial_taxonomies();
|
||||
|
||||
$wp_rewrite->flush_rules();
|
||||
}
|
||||
|
||||
/**
|
||||
* @ticket 16746
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue