mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 06:37:06 +00:00
Coding Standards: Upgrade WPCS to 1.0.0
WPCS 1.0.0 includes a bunch of new auto-fixers, which drops the number of coding standards issues across WordPress significantly. Prior to running the auto-fixers, there were 15,312 issues detected. With this commit, we now drop to 4,769 issues. This change includes three notable additions: - Multiline function calls must now put each parameter on a new line. - Auto-formatting files is now part of the `grunt precommit` script. - Auto-fixable coding standards issues will now cause Travis failures. Fixes #44600. git-svn-id: https://develop.svn.wordpress.org/trunk@43571 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -264,7 +264,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
protected function extra_tablenav( $which ) {
|
||||
$id = 'bottom' === $which ? 'new_role2' : 'new_role';
|
||||
$button_id = 'bottom' === $which ? 'changeit2' : 'changeit';
|
||||
?>
|
||||
?>
|
||||
<div class="alignleft actions">
|
||||
<?php if ( current_user_can( 'promote_users' ) && $this->has_items() ) : ?>
|
||||
<label class="screen-reader-text" for="<?php echo $id; ?>"><?php _e( 'Change role to…' ); ?></label>
|
||||
@@ -272,7 +272,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
<option value=""><?php _e( 'Change role to…' ); ?></option>
|
||||
<?php wp_dropdown_roles(); ?>
|
||||
</select>
|
||||
<?php
|
||||
<?php
|
||||
submit_button( __( 'Change' ), '', $button_id, false );
|
||||
endif;
|
||||
|
||||
@@ -286,9 +286,9 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
* @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
|
||||
*/
|
||||
do_action( 'restrict_manage_users', $which );
|
||||
?>
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
<?php
|
||||
/**
|
||||
* Fires immediately following the closing "actions" div in the tablenav for the users
|
||||
* list table.
|
||||
|
||||
Reference in New Issue
Block a user