Changeset 65796
- Timestamp:
- 11/25/2026 09:08:38 PM (11 hours ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/rewrite/rewriteTags.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rewrite/rewriteTags.php
r64507 r65796 9 9 protected $queryreplace; 10 10 11 /** 12 * The `WP_Rewrite` instance from before the test. 13 * 14 * @var WP_Rewrite 15 */ 16 private $orig_wp_rewrite; 17 11 18 public function set_up() { 12 19 global $wp_rewrite; 13 20 parent::set_up(); 21 22 $this->orig_wp_rewrite = $wp_rewrite; 14 23 15 24 $wp_rewrite = new WP_Rewrite(); … … 19 28 $this->rewritereplace = $wp_rewrite->rewritereplace; 20 29 $this->queryreplace = $wp_rewrite->queryreplace; 30 } 31 32 public function tear_down() { 33 $GLOBALS['wp_rewrite'] = $this->orig_wp_rewrite; 34 35 parent::tear_down(); 21 36 } 22 37
Note:
See TracChangeset
for help on using the changeset viewer.