- Timestamp:
- 05/13/2026 03:28:14 AM (2 months ago)
- Location:
- branches/7.0
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/dependencies/wpStyleLoaderSrc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/7.0
-
branches/7.0/tests/phpunit/tests/dependencies/wpStyleLoaderSrc.php
r62025 r62354 13 13 /** 14 14 * Tests that PHP warnings are not thrown when wp_style_loader_src() is called 15 * before the `$_wp_admin_css_colors` global is set within the admin.15 * before the `$_wp_admin_css_colors` global is set. 16 16 * 17 17 * The warnings that we should not see: … … 20 20 * 21 21 * @ticket 61302 22 * @ticket 6476223 22 */ 24 23 public function test_without_wp_admin_css_colors_global() { 25 if ( is_admin() ) { 26 $this->assertFalse( wp_style_loader_src( '', 'colors' ) ); 27 } else { 28 $this->assertStringContainsString( '/colors.css', wp_style_loader_src( '', 'colors' ) ); 29 } 24 $this->assertFalse( wp_style_loader_src( '', 'colors' ) ); 30 25 } 31 26 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)