Make WordPress Core


Ignore:
Timestamp:
10/03/2015 05:14:12 PM (10 years ago)
Author:
DrewAPicture
Message:

Tests: Introduce WP_UnitTestCase::reset_permalinks(), an attempt to DRY up logic for resetting and restoring default permalinks on setUp() and tearDown().

See #33968.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rewrite/oldSlugRedirect.php

    r34685 r34802  
    3535
    3636        remove_filter( 'old_slug_redirect_url', array( $this, 'filter_old_slug_redirect_url' ), 10 );
    37 
    38         global $wp_rewrite;
    39 
    40         $wp_rewrite->set_permalink_structure( '' );
    41         $wp_rewrite->init();
    4237    }
    4338
Note: See TracChangeset for help on using the changeset viewer.