Tests: Permalink Structures Phase II: DRY up logic for setting permalink structures in test methods.

Renames `reset_permalinks()` to `set_permalink_structure()` (mimicking `$wp_rewrite->set_permalink_structure()`) and allows it to accept an optional permalink structure. In this way, we can double dip using it to both set and reset the permalink structure from anywhere.

Removes alot of duplicated code from tests.

See #33968.

Built from https://develop.svn.wordpress.org/trunk@34810


git-svn-id: http://core.svn.wordpress.org/trunk@34775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-10-03 20:55:24 +00:00
parent 28625bfc38
commit c1fc5e79c8

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34809';
$wp_version = '4.4-alpha-34810';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.