From f7d8a35517746df90d79f1c8c122a7c9ade15c97 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Fri, 17 Aug 2018 01:51:36 +0000 Subject: [PATCH] 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 --- archive.php | 2 +- author.php | 4 +-- comments.php | 7 ++-- content-page.php | 4 +-- content.php | 2 +- functions.php | 26 ++++++++------ header.php | 2 +- image.php | 68 +++++++++++++++++------------------ inc/custom-header.php | 16 ++++----- index.php | 8 ++--- page-templates/front-page.php | 2 +- page-templates/full-width.php | 2 +- page.php | 2 +- search.php | 2 +- single.php | 2 +- 15 files changed, 77 insertions(+), 72 deletions(-) diff --git a/archive.php b/archive.php index cf0611c45..edd947ef0 100644 --- a/archive.php +++ b/archive.php @@ -35,7 +35,7 @@ get_header(); ?> else : _e( 'Archives', 'twentytwelve' ); endif; - ?> + ?> diff --git a/author.php b/author.php index ace43e7bd..0dbd267d6 100644 --- a/author.php +++ b/author.php @@ -45,7 +45,7 @@ get_header(); ?> + ?>
+ ?> diff --git a/comments.php b/comments.php index 19f5941da..010c1aedf 100644 --- a/comments.php +++ b/comments.php @@ -31,7 +31,8 @@ if ( post_password_required() ) { ' . get_the_title() . '' + number_format_i18n( get_comments_number() ), + '' . get_the_title() . '' ); ?> @@ -44,7 +45,7 @@ if ( post_password_required() ) { 'style' => 'ol', ) ); -?> + ?> 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> @@ -60,7 +61,7 @@ if ( post_password_required() ) { * But we only want the note on posts and pages that had comments in the first place. */ if ( ! comments_open() && get_comments_number() ) : - ?> + ?>

diff --git a/content-page.php b/content-page.php index d1553444b..3511b75f3 100644 --- a/content-page.php +++ b/content-page.php @@ -11,7 +11,7 @@
>
- +

@@ -25,7 +25,7 @@ 'after' => '
', ) ); -?> + ?>