Make WordPress Core


Ignore:
Timestamp:
09/26/2016 05:01:48 PM (10 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/includes/testcase-canonical.php

    r38398 r38654  
    3131                update_option( 'posts_per_page', 5 );
    3232
    33                 global $wp_rewrite;
    34                 $wp_rewrite->init();
    35                 $wp_rewrite->set_permalink_structure( $this->structure );
    36 
     33                $this->set_permalink_structure( $this->structure );
    3734                create_initial_taxonomies();
    38 
    39                 $wp_rewrite->flush_rules();
    4035        }
    4136
Note: See TracChangeset for help on using the changeset viewer.