Coding Standards: Fix all `WordPress.WhiteSpace.PrecisionAlignment` issues.

See #47632.


Built from https://develop.svn.wordpress.org/trunk@45602


git-svn-id: http://core.svn.wordpress.org/trunk@45413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2019-07-05 05:21:56 +00:00
parent f69c20859e
commit 87675d288b
29 changed files with 141 additions and 144 deletions

View File

@ -1950,20 +1950,16 @@ var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>',
?> ?>
</head> </head>
<?php <?php
/**
* @global string $body_id
*/
$admin_body_id = isset( $GLOBALS['body_id'] ) ? 'id="' . $GLOBALS['body_id'] . '" ' : '';
/** This filter is documented in wp-admin/admin-header.php */ /** This filter is documented in wp-admin/admin-header.php */
$admin_body_classes = apply_filters( 'admin_body_class', '' ); $admin_body_classes = apply_filters( 'admin_body_class', '' );
$admin_body_classes = ltrim( $admin_body_classes . ' ' . $admin_body_class ); $admin_body_classes = ltrim( $admin_body_classes . ' ' . $admin_body_class );
?> ?>
<body <body <?php echo $admin_body_id; ?>class="wp-admin wp-core-ui no-js iframe <?php echo $admin_body_classes; ?>">
<?php
/**
* @global string $body_id
*/
if ( isset( $GLOBALS['body_id'] ) ) {
echo ' id="' . $GLOBALS['body_id'] . '"';
}
?>
class="wp-admin wp-core-ui no-js iframe <?php echo $admin_body_classes; ?>">
<script type="text/javascript"> <script type="text/javascript">
(function(){ (function(){
var c = document.body.className; var c = document.body.className;

View File

@ -844,7 +844,7 @@ function shortcode_unautop( $pee ) {
$tagregexp = join( '|', array_map( 'preg_quote', array_keys( $shortcode_tags ) ) ); $tagregexp = join( '|', array_map( 'preg_quote', array_keys( $shortcode_tags ) ) );
$spaces = wp_spaces_regexp(); $spaces = wp_spaces_regexp();
// phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation // phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound,WordPress.WhiteSpace.PrecisionAlignment.Found -- don't remove regex indentation
$pattern = $pattern =
'/' '/'
. '<p>' // Opening paragraph . '<p>' // Opening paragraph
@ -2903,7 +2903,8 @@ function make_clickable( $text ) {
)* )*
) )
(\)?) # 3: Trailing closing parenthesis (for parethesis balancing post processing) (\)?) # 3: Trailing closing parenthesis (for parethesis balancing post processing)
~xS'; // The regex is a non-anchored pattern and does not have a single fixed starting character. ~xS';
// The regex is a non-anchored pattern and does not have a single fixed starting character.
// Tell PCRE to spend more time optimizing since, when used on a page load, it will probably be used several times. // Tell PCRE to spend more time optimizing since, when used on a page load, it will probably be used several times.
$ret = preg_replace_callback( $url_clickable, '_make_url_clickable_cb', $ret ); $ret = preg_replace_callback( $url_clickable, '_make_url_clickable_cb', $ret );

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.3-alpha-45601'; $wp_version = '5.3-alpha-45602';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.