Changeset 61424 for trunk/tests/phpunit/tests/dependencies/scripts.php
- Timestamp:
- 01/03/2026 06:15:57 AM (3 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/dependencies/scripts.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dependencies/scripts.php
r61415 r61424 38 38 public function set_up() { 39 39 parent::set_up(); 40 $this->old_wp_scripts = isset( $GLOBALS['wp_scripts'] ) ? $GLOBALS['wp_scripts'] :null;41 $this->old_wp_styles = isset( $GLOBALS['wp_styles'] ) ? $GLOBALS['wp_styles'] :null;42 $this->old_concatenate_scripts = isset( $GLOBALS['concatenate_scripts'] ) ? $GLOBALS['concatenate_scripts'] :null;40 $this->old_wp_scripts = $GLOBALS['wp_scripts'] ?? null; 41 $this->old_wp_styles = $GLOBALS['wp_styles'] ?? null; 42 $this->old_concatenate_scripts = $GLOBALS['concatenate_scripts'] ?? null; 43 43 remove_action( 'wp_default_scripts', 'wp_default_scripts' ); 44 44 remove_action( 'wp_default_scripts', 'wp_default_packages' );
Note: See TracChangeset
for help on using the changeset viewer.