mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@34810 602fd350-edb4-49c9-b593-d223f7449a82
18 lines
323 B
PHP
18 lines
323 B
PHP
<?php
|
|
|
|
require_once dirname( __FILE__ ) . '/conditionals.php';
|
|
|
|
/**
|
|
* @group query
|
|
* @group rewrite
|
|
*/
|
|
class Tests_Query_VerbosePageRules extends Tests_Query_Conditionals {
|
|
function setUp() {
|
|
parent::setUp();
|
|
|
|
create_initial_taxonomies();
|
|
|
|
$this->set_permalink_structure( '/%category%/%year%/%postname%/' );
|
|
}
|
|
}
|