mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Make sure hundreds of canonical tests don't fail in multisite every other time they are run.
See #28706. git-svn-id: https://develop.svn.wordpress.org/trunk@28964 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -34,8 +34,9 @@ class Tests_Link extends WP_UnitTestCase {
|
||||
$post_id = $this->factory->post->create();
|
||||
$post_id2 = $this->factory->post->create();
|
||||
|
||||
$wp_rewrite->permalink_structure = '';
|
||||
$wp_rewrite->init();
|
||||
$wp_rewrite->set_permalink_structure( '' );
|
||||
$wp_rewrite->flush_rules();
|
||||
|
||||
// Basic case
|
||||
$this->assertEquals( get_permalink( $post_id ), wp_get_shortlink( $post_id, 'post' ) );
|
||||
|
||||
Reference in New Issue
Block a user