Make WordPress Core


Ignore:
Timestamp:
09/26/2016 05:01:48 PM (8 years ago)
Author:
johnbillion
Message:

Built/Test Tools: Unify the way the permastructure is set when used in conjunction with re-registering the initial taxonomies. This ensure that rewrite rules for taxonomies are consistently available.

Fixes #35452

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/canonical/https.php

    r30277 r38654  
    88class Tests_Canonical_HTTPS extends WP_Canonical_UnitTestCase {
    99    function setUp() {
    10         global $wp_rewrite;
    11 
    1210        parent::setUp();
    1311
    14         $wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' );
     12        $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' );
    1513        create_initial_taxonomies();
    16         $wp_rewrite->flush_rules();
    17         $wp_rewrite->init();
    1814
    1915        $this->http  = set_url_scheme( home_url( 'sample-page/' ), 'http' );
Note: See TracChangeset for help on using the changeset viewer.