From 7a617078fa7674f2062379b961daba412875ab9e Mon Sep 17 00:00:00 2001
From: Gary Pendergast
Date: Sat, 12 Jan 2019 06:41:52 +0000
Subject: [PATCH] Coding Standards: Upgrade WPCS to 1.2.1.
This upgrade fixes quite a few false positives, as well as auto-fixing some indenting issues.
Fixes #45956.
Built from https://develop.svn.wordpress.org/trunk@44574
git-svn-id: http://core.svn.wordpress.org/trunk@44405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
wp-activate.php | 28 ++++----
wp-admin/custom-header.php | 32 ++++-----
wp-admin/includes/class-wp-list-table.php | 2 +-
.../class-wp-plugin-install-list-table.php | 4 +-
.../includes/class-wp-posts-list-table.php | 66 +++++++++----------
wp-admin/includes/class-wp-screen.php | 4 +-
.../includes/class-wp-users-list-table.php | 2 +-
wp-admin/includes/meta-boxes.php | 2 +-
wp-admin/includes/ms.php | 4 +-
wp-admin/includes/plugin-install.php | 16 ++---
wp-admin/includes/post.php | 10 +--
wp-admin/nav-menus.php | 18 ++---
wp-admin/network/site-new.php | 12 ++--
wp-admin/options-permalink.php | 34 +++++-----
wp-admin/user-edit.php | 16 ++---
wp-admin/users.php | 60 ++++++++---------
wp-content/themes/twentyeleven/comments.php | 2 +-
.../themes/twentyeleven/content-gallery.php | 16 ++---
wp-content/themes/twentyfifteen/header.php | 10 +--
.../twentyfifteen/inc/template-tags.php | 2 +-
.../themes/twentyfourteen/content-aside.php | 4 +-
.../themes/twentyfourteen/content-audio.php | 4 +-
.../themes/twentyfourteen/content-gallery.php | 4 +-
.../themes/twentyfourteen/content-image.php | 4 +-
.../themes/twentyfourteen/content-link.php | 4 +-
.../themes/twentyfourteen/content-none.php | 4 +-
.../themes/twentyfourteen/content-quote.php | 4 +-
.../themes/twentyfourteen/content-video.php | 4 +-
wp-content/themes/twentyfourteen/content.php | 4 +-
.../twentyfourteen/inc/template-tags.php | 16 ++---
.../template-parts/post/content-none.php | 2 +-
wp-content/themes/twentysixteen/header.php | 6 +-
.../twentysixteen/inc/template-tags.php | 2 +-
wp-content/themes/twentyten/loop.php | 4 +-
.../themes/twentythirteen/content-none.php | 4 +-
wp-includes/feed-atom-comments.php | 8 +--
wp-includes/feed-atom.php | 2 +-
wp-includes/feed-rss2-comments.php | 4 +-
wp-includes/version.php | 2 +-
.../widgets/class-wp-widget-archives.php | 2 +-
wp-includes/widgets/class-wp-widget-text.php | 2 +-
wp-login.php | 10 +--
wp-signup.php | 4 +-
43 files changed, 222 insertions(+), 222 deletions(-)
diff --git a/wp-activate.php b/wp-activate.php
index 5954140960..df82ae0b09 100644
--- a/wp-activate.php
+++ b/wp-activate.php
@@ -135,10 +135,10 @@ get_header( 'wp-activate' );
get_error_code(), $valid_error_codes ) ) {
- $signup = $result->get_error_data();
- ?>
+ } else {
+ if ( is_wp_error( $result ) && in_array( $result->get_error_code(), $valid_error_codes ) ) {
+ $signup = $result->get_error_data();
+ ?>
';
@@ -162,17 +162,17 @@ get_header( 'wp-activate' );
);
}
echo '
';
- } elseif ( $result === null || is_wp_error( $result ) ) {
- ?>
+ } elseif ( $result === null || is_wp_error( $result ) ) {
+ ?>
get_error_message(); ?>
+ } else {
+ $url = isset( $result['blog_id'] ) ? get_home_url( (int) $result['blog_id'] ) : '';
+ $user = get_userdata( (int) $result['user_id'] );
+ ?>
@@ -199,11 +199,11 @@ get_header( 'wp-activate' );
printf( __( 'Your account is now activated.
Log in or go back to the
homepage.' ), network_site_url( 'wp-login.php', 'login' ), network_home_url() );
?>
-
+ ?>