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/rewrite.php

    r36750 r38654  
    1212        parent::setUp();
    1313
     14        $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' );
    1415        create_initial_taxonomies();
    15 
    16         $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' );
    1716
    1817        $this->home_url = get_option( 'home' );
     
    349348
    350349        $this->assertEquals( $post_id, url_to_postid( get_permalink( $post_id ) ) );
    351 
    352         $this->set_permalink_structure();
    353350    }
    354351
     
    386383        $this->assertTrue( is_single() );
    387384        $this->assertFalse( is_404() );
    388 
    389         $this->set_permalink_structure();
    390385    }
    391386
     
    394389     */
    395390    public function test_flush_rules_does_not_delete_option() {
    396         $this->set_permalink_structure();
     391        $this->set_permalink_structure( '' );
    397392
    398393        $rewrite_rules = get_option( 'rewrite_rules' );
Note: See TracChangeset for help on using the changeset viewer.