mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +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:
@@ -961,11 +961,11 @@ function can_edit_network( $network_id ) {
|
||||
* @access private
|
||||
*/
|
||||
function _thickbox_path_admin_subfolder() {
|
||||
?>
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
var tb_pathToImage = "<?php echo includes_url( 'js/thickbox/loadingAnimation.gif', 'relative' ); ?>";
|
||||
</script>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1065,7 +1065,7 @@ function confirm_delete_users( $users ) {
|
||||
<td><fieldset><p><legend><?php _e( 'User has no sites or content and will be deleted.' ); ?></legend></p>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1076,7 +1076,7 @@ function confirm_delete_users( $users ) {
|
||||
do_action( 'delete_user_form', $current_user, $allusers );
|
||||
|
||||
if ( 1 == count( $users ) ) :
|
||||
?>
|
||||
?>
|
||||
<p><?php _e( 'Once you hit “Confirm Deletion”, the user will be permanently removed.' ); ?></p>
|
||||
<?php else : ?>
|
||||
<p><?php _e( 'Once you hit “Confirm Deletion”, these users will be permanently removed.' ); ?></p>
|
||||
@@ -1084,7 +1084,7 @@ function confirm_delete_users( $users ) {
|
||||
endif;
|
||||
|
||||
submit_button( __( 'Confirm Deletion' ), 'primary' );
|
||||
?>
|
||||
?>
|
||||
</form>
|
||||
<?php
|
||||
return true;
|
||||
@@ -1096,7 +1096,7 @@ function confirm_delete_users( $users ) {
|
||||
* @since 4.1.0
|
||||
*/
|
||||
function network_settings_add_js() {
|
||||
?>
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready( function($) {
|
||||
var languageSelect = $( '#WPLANG' );
|
||||
@@ -1109,7 +1109,7 @@ jQuery(document).ready( function($) {
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1147,7 +1147,8 @@ function network_edit_site_nav( $args = array() ) {
|
||||
* }
|
||||
*/
|
||||
$links = apply_filters(
|
||||
'network_edit_site_nav_links', array(
|
||||
'network_edit_site_nav_links',
|
||||
array(
|
||||
'site-info' => array(
|
||||
'label' => __( 'Info' ),
|
||||
'url' => 'site-info.php',
|
||||
@@ -1173,7 +1174,8 @@ function network_edit_site_nav( $args = array() ) {
|
||||
|
||||
// Parse arguments
|
||||
$r = wp_parse_args(
|
||||
$args, array(
|
||||
$args,
|
||||
array(
|
||||
'blog_id' => isset( $_GET['blog_id'] ) ? (int) $_GET['blog_id'] : 0,
|
||||
'links' => $links,
|
||||
'selected' => 'site-info',
|
||||
|
||||
Reference in New Issue
Block a user