Coding Standards: Remove extra whitespace in list tables' column_cb() methods.

See #47632.
Built from https://develop.svn.wordpress.org/trunk@45617


git-svn-id: http://core.svn.wordpress.org/trunk@45428 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-07-09 21:11:58 +00:00
parent 9a5f538153
commit 7369ff02f5
6 changed files with 10 additions and 12 deletions

View File

@ -169,7 +169,9 @@ class WP_Links_List_Table extends WP_List_Table {
*/
public function column_cb( $link ) {
?>
<label class="screen-reader-text" for="cb-select-<?php echo $link->link_id; ?>"><?php echo sprintf( __( 'Select %s' ), $link->link_name ); ?></label>
<label class="screen-reader-text" for="cb-select-<?php echo $link->link_id; ?>">
<?php printf( __( 'Select %s' ), $link->link_name ); ?>
</label>
<input type="checkbox" name="linkcheck[]" id="cb-select-<?php echo $link->link_id; ?>" value="<?php echo esc_attr( $link->link_id ); ?>" />
<?php
}

View File

@ -356,9 +356,7 @@ class WP_Media_List_Table extends WP_List_Table {
if ( current_user_can( 'edit_post', $post->ID ) ) {
?>
<label class="screen-reader-text" for="cb-select-<?php echo $post->ID; ?>">
<?php
echo sprintf( __( 'Select %s' ), _draft_or_post_title() );
?>
<?php printf( __( 'Select %s' ), _draft_or_post_title() ); ?>
</label>
<input type="checkbox" name="media[]" id="cb-select-<?php echo $post->ID; ?>" value="<?php echo $post->ID; ?>" />
<?php

View File

@ -280,9 +280,7 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
$blogname = untrailingslashit( $blog['domain'] . $blog['path'] );
?>
<label class="screen-reader-text" for="blog_<?php echo $blog['blog_id']; ?>">
<?php
printf( __( 'Select %s' ), $blogname );
?>
<?php printf( __( 'Select %s' ), $blogname ); ?>
</label>
<input type="checkbox" id="blog_<?php echo $blog['blog_id']; ?>" name="allblogs[]" value="<?php echo esc_attr( $blog['blog_id'] ); ?>" />
<?php

View File

@ -208,7 +208,9 @@ class WP_MS_Users_List_Table extends WP_List_Table {
return;
}
?>
<label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>"><?php echo sprintf( __( 'Select %s' ), $user->user_login ); ?></label>
<label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>">
<?php printf( __( 'Select %s' ), $user->user_login ); ?>
</label>
<input type="checkbox" id="blog_<?php echo $user->ID; ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ); ?>" />
<?php
}

View File

@ -917,9 +917,7 @@ class WP_Posts_List_Table extends WP_List_Table {
if ( current_user_can( 'edit_post', $post->ID ) ) :
?>
<label class="screen-reader-text" for="cb-select-<?php the_ID(); ?>">
<?php
printf( __( 'Select %s' ), _draft_or_post_title() );
?>
<?php printf( __( 'Select %s' ), _draft_or_post_title() ); ?>
</label>
<input id="cb-select-<?php the_ID(); ?>" type="checkbox" name="post[]" value="<?php the_ID(); ?>" />
<div class="locked-indicator">

View File

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