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:
Sergey Biryukov 2019-09-19 11:39:01 +00:00
parent a87122688b
commit e5bee4ef68
1 changed files with 7 additions and 5 deletions

View File

@ -732,14 +732,16 @@ JS;
$print_scripts = get_echo( 'wp_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.
// The packaged scripts contain various version numbers, which are
// not exposed, so we will remove all version args from the output.
/*
* We've replaced wp-a11y.js with @wordpress/a11y package (see #45066),
* and `wp-polyfill` is now a dependency of the packaged wp-a11y.
* 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(
'~js\?ver=([^"\']*)~', // Matches `js?ver=X.X.X` and everything to single or double quote.
'js', // The replacement, `js` without the version arg.
$print_scripts // Printed scripts.
$print_scripts // Printed scripts.
);
$this->assertEquals( $expected, $print_scripts );