wordpress-develop/tests/phpunit/tests/dependencies
Jonny Harris 559e6cecf4 Script Loader: Add a check to see in style is registered in wp_maybe_inline_styles.
Add a check in `wp_maybe_inline_styles` to check that style is registered before processing items in queue. It is possible that developers may have called `wp_deregister_style`, unregistering style but the style still be in the queue to be processed. Without this check, typing to access the `src` property would result in a notice error. 

Follow on from [55888]. 

Props spacedmonkey, flixos90, dd32, kebbet.
See #58394.

git-svn-id: https://develop.svn.wordpress.org/trunk@55909 602fd350-edb4-49c9-b593-d223f7449a82
2023-06-13 09:51:11 +00:00
..
jquery.php Tests: Add test class for wp_script_is(). 2023-03-20 16:16:22 +00:00
scripts.php General: Use static on closures whenever $this is not used to avoid memory leaks. 2023-05-17 22:44:21 +00:00
styles.php Script Loader: Add a check to see in style is registered in wp_maybe_inline_styles. 2023-06-13 09:51:11 +00:00
wpInlineScriptTag.php Coding Standards: Use static closures when not using $this. 2021-08-26 12:57:08 +00:00
wpSanitizeScriptAttributes.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
wpScriptIs.php Tests: Add test class for wp_script_is(). 2023-03-20 16:16:22 +00:00
wpScriptTag.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00