Changeset 28961
- Timestamp:
- 07/02/2014 07:49:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/link.php
r27836 r28961 30 30 31 31 function test_wp_get_shortlink() { 32 global $wp_rewrite; 33 32 34 $post_id = $this->factory->post->create(); 33 35 $post_id2 = $this->factory->post->create(); 36 37 $wp_rewrite->permalink_structure = ''; 38 $wp_rewrite->set_permalink_structure( '' ); 34 39 35 40 // Basic case … … 60 65 $this->assertEquals( '', wp_get_shortlink() ); 61 66 62 global $wp_rewrite;63 67 $wp_rewrite->permalink_structure = ''; 64 68 $wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' );
Note: See TracChangeset
for help on using the changeset viewer.