Docs: Format multi-line comment in [46180] per the documentation standards.
See #45066. git-svn-id: https://develop.svn.wordpress.org/trunk@46181 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a87122688b
commit
e5bee4ef68
@ -732,14 +732,16 @@ JS;
|
|||||||
$print_scripts = get_echo( 'wp_print_scripts' );
|
$print_scripts = get_echo( 'wp_print_scripts' );
|
||||||
$print_scripts .= get_echo( '_print_scripts' );
|
$print_scripts .= get_echo( '_print_scripts' );
|
||||||
|
|
||||||
// We've replaced wp-a11y.js with @wordpress/a11y package (see #45066),
|
/*
|
||||||
// and `wp-polyfill` is now a dependency of the packaged wp-a11y.
|
* We've replaced wp-a11y.js with @wordpress/a11y package (see #45066),
|
||||||
// The packaged scripts contain various version numbers, which are
|
* and `wp-polyfill` is now a dependency of the packaged wp-a11y.
|
||||||
// not exposed, so we will remove all version args from the output.
|
* The packaged scripts contain various version numbers, which are not exposed,
|
||||||
|
* so we will remove all version args from the output.
|
||||||
|
*/
|
||||||
$print_scripts = preg_replace(
|
$print_scripts = preg_replace(
|
||||||
'~js\?ver=([^"\']*)~', // Matches `js?ver=X.X.X` and everything to single or double quote.
|
'~js\?ver=([^"\']*)~', // Matches `js?ver=X.X.X` and everything to single or double quote.
|
||||||
'js', // The replacement, `js` without the version arg.
|
'js', // The replacement, `js` without the version arg.
|
||||||
$print_scripts // Printed scripts.
|
$print_scripts // Printed scripts.
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->assertEquals( $expected, $print_scripts );
|
$this->assertEquals( $expected, $print_scripts );
|
||||||
|
Loading…
Reference in New Issue
Block a user