Changeset 61424 for trunk/tests/phpunit/tests/general/wpResourceHints.php
- Timestamp:
- 01/03/2026 06:15:57 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/general/wpResourceHints.php
r56548 r61424 13 13 public function set_up() { 14 14 parent::set_up(); 15 $this->old_wp_scripts = isset( $GLOBALS['wp_scripts'] ) ? $GLOBALS['wp_scripts'] :null;16 $this->old_wp_styles = isset( $GLOBALS['wp_styles'] ) ? $GLOBALS['wp_styles'] :null;15 $this->old_wp_scripts = $GLOBALS['wp_scripts'] ?? null; 16 $this->old_wp_styles = $GLOBALS['wp_styles'] ?? null; 17 17 18 18 remove_action( 'wp_default_scripts', 'wp_default_scripts' );
Note: See TracChangeset
for help on using the changeset viewer.