WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/23/2014 01:19:04 AM (5 years ago)
Author:
boonebgorges
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post.php

    r30522 r30529  
    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.