mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-30 20:21:37 +01:00
Script Loader: Improve test coverage for wp_print_scripts()
.
This is a follow-up to [56092], which further improves PHPUnit test coverage and inline docs for ensuring `async` and `defer` attributes are being properly handled for scripts that are printed without being enqueued. Props peterwilsoncc, azaozz, westonruter, joemcgill. See #58648. Built from https://develop.svn.wordpress.org/trunk@56246 git-svn-id: http://core.svn.wordpress.org/trunk@55758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
59f1c9c205
commit
e1b050cb9b
@ -914,7 +914,10 @@ JS;
|
||||
return '';
|
||||
}
|
||||
|
||||
// If the intended strategy is 'defer', limit the initial list of eligibles.
|
||||
/*
|
||||
* If the intended strategy is 'defer', limit the initial list of eligible
|
||||
* strategies, since 'async' can fallback to 'defer', but not vice-versa.
|
||||
*/
|
||||
$initial = ( 'defer' === $intended ) ? array( 'defer' ) : null;
|
||||
|
||||
$eligible = $this->filter_eligible_strategies( $handle, $initial );
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.3-beta4-56245';
|
||||
$wp_version = '6.3-beta4-56246';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user