From 98e3e75109b5636a4801f367f1e4403b4d7c48bb Mon Sep 17 00:00:00 2001
From: jrfnl
Date: Tue, 27 Feb 2018 11:35:30 +0100
Subject: [PATCH] CS: prefix all variables
While template files are intended to be included from within a function, this doesn't guarantee they always will be.
Therefore all variables declared within template files also need to be prefixed with a theme specific prefix.
As these are "local" variables, renaming them does not constitute a BC-break.
---
404.php | 4 ++--
comments.php | 8 ++++----
header.php | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/404.php b/404.php
index 9cc9cb66..62c3e068 100644
--- a/404.php
+++ b/404.php
@@ -44,8 +44,8 @@ get_header();
' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', '_s' ), convert_smilies( ':)' ) ) . '
';
- the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=$archive_content" );
+ $_s_archive_content = '' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', '_s' ), convert_smilies( ':)' ) ) . '
';
+ the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=$_s_archive_content" );
the_widget( 'WP_Widget_Tag_Cloud' );
?>
diff --git a/comments.php b/comments.php
index dc2853e1..2c94bfd0 100644
--- a/comments.php
+++ b/comments.php
@@ -28,8 +28,8 @@ if ( post_password_required() ) {
?>
-
+