Skip to content

Commit

Permalink
Coding Standards: Fix incorrect alignment in two comment blocks.
Browse files Browse the repository at this point in the history
Tabs should only be used for indentation and not for mid-line alignment.

Props jrf.
See #53359.

git-svn-id: https://develop.svn.wordpress.org/trunk@51551 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Aug 5, 2021
1 parent efe0061 commit b2be104
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
11 changes: 7 additions & 4 deletions src/wp-includes/script-loader.php
Expand Up @@ -220,10 +220,13 @@ function wp_get_script_polyfill( $scripts, $tests ) {
function wp_default_packages_scripts( $scripts ) {
$suffix = wp_scripts_get_suffix();

// Expects multidimensional array like:
// 'a11y.js' => array('dependencies' => array(...), 'version' => '...'),
// 'annotations.js' => array('dependencies' => array(...), 'version' => '...'),
// 'api-fetch.js' => array(...
/*
* Expects multidimensional array like:
*
* 'a11y.js' => array('dependencies' => array(...), 'version' => '...'),
* 'annotations.js' => array('dependencies' => array(...), 'version' => '...'),
* 'api-fetch.js' => array(...
*/
$assets = include ABSPATH . WPINC . '/assets/script-loader-packages.php';

foreach ( $assets as $package_name => $package_data ) {
Expand Down
10 changes: 5 additions & 5 deletions tests/phpunit/includes/wp-profiler.php
Expand Up @@ -7,11 +7,11 @@
*
* start() and stop() must be called in pairs, for example:
*
* function something_to_profile() {
* wppf_start(__FUNCTION__);
* do_stuff();
* wppf_stop();
* }
* function something_to_profile() {
* wppf_start( __FUNCTION__ );
* do_stuff();
* wppf_stop();
* }
*
* Multiple profile blocks are permitted, and they may be nested.
*/
Expand Down

0 comments on commit b2be104

Please sign in to comment.