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. Built from https://develop.svn.wordpress.org/trunk@43571 git-svn-id: http://core.svn.wordpress.org/trunk@43400 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -40,7 +40,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
__( 'Major Customizer Improvements, Code Error Checking, and More! %s' ),
|
||||
'🎉'
|
||||
);
|
||||
?>
|
||||
?>
|
||||
</h2>
|
||||
<p><?php _e( 'Welcome to an improved Customizer workflow with design drafts, locking, scheduling, and preview links. What’s more, code syntax highlighting and error checking will make for a clean and smooth site building experience. Finally, if all that wasn’t pretty great, we’ve got a great new Gallery widget and improvements to theme browsing and switching.' ); ?></p>
|
||||
</div>
|
||||
@@ -181,7 +181,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
__( 'Lend a Hand with Gutenberg %s' ),
|
||||
'🤝'
|
||||
);
|
||||
?>
|
||||
?>
|
||||
</h2>
|
||||
<p>
|
||||
<?php
|
||||
@@ -190,7 +190,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
__( 'https://wordpress.org/plugins/gutenberg/' ),
|
||||
'https://github.com/WordPress/gutenberg'
|
||||
);
|
||||
?>
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -204,7 +204,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
__( 'Developer Happiness %s' ),
|
||||
'😊'
|
||||
);
|
||||
?>
|
||||
?>
|
||||
</h2>
|
||||
|
||||
<div class="under-the-hood two-col">
|
||||
@@ -217,7 +217,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
__( 'We’ve made numerous improvements to the Customizer JS API in WordPress 4.9, eliminating many pain points and making it just as easy to work with as the PHP API. There are also new base control templates, a date/time control, and section/panel/global notifications to name a few. <a href="%s">Check out the full list.</a>' ),
|
||||
'https://make.wordpress.org/core/2017/11/01/improvements-to-the-customize-js-api-in-4-9/'
|
||||
);
|
||||
?>
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col">
|
||||
|
||||
Reference in New Issue
Block a user