Make WordPress Core


Ignore:
Timestamp:
04/15/2017 10:01:29 PM (9 years ago)
Author:
johnbillion
Message:

Better rewrite rule flushing in test_permalink_without_title().

This ensures that the test is not polluted by permalink structure changes in
earlier tests.

Merges [30529] to the 4.0 branch.

See #40463

Location:
branches/4.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.0

  • branches/4.0/tests/phpunit/tests/post.php

    r32181 r40456  
    447447
    448448                global $wp_rewrite;
     449                $wp_rewrite->init();
    449450                $wp_rewrite->set_permalink_structure('/%year%/%monthnum%/%day%/%postname%/');
     451                $wp_rewrite->flush_rules();
    450452
    451453                $post = array(
Note: See TracChangeset for help on using the changeset viewer.