From 2d1c77837bfb01e4cfbb8c15a1958fd89aed336d Mon Sep 17 00:00:00 2001 From: Josh Levinson Date: Fri, 13 Jun 2014 14:09:20 -0400 Subject: [PATCH 1/5] Initiate the loop before the title is called on pages. Failing to do so causes checks that run on the loop's status to fail. --- page.php | 6 ++++-- templates/content-page.php | 6 ++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/page.php b/page.php index 82baa27..82dcf56 100644 --- a/page.php +++ b/page.php @@ -1,2 +1,4 @@ - - + + + + \ No newline at end of file diff --git a/templates/content-page.php b/templates/content-page.php index 20a30e3..56366c2 100644 --- a/templates/content-page.php +++ b/templates/content-page.php @@ -1,4 +1,2 @@ - - - '')); ?> - + + '')); ?> \ No newline at end of file From 5f6c137a172c24117f71905af627f75f6c6669b8 Mon Sep 17 00:00:00 2001 From: joshlevinson Date: Mon, 16 Jun 2014 12:41:45 -0400 Subject: [PATCH 2/5] Update page.php --- page.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/page.php b/page.php index 82dcf56..6e55a0d 100644 --- a/page.php +++ b/page.php @@ -1,4 +1,4 @@ - - - \ No newline at end of file + + + From 7c39d5b039b5c784e28f734489cb4c4e39cd820e Mon Sep 17 00:00:00 2001 From: kalenjohnson Date: Fri, 27 Jun 2014 09:05:41 -0700 Subject: [PATCH 3/5] Updated all instances of home_url() with esc_url() --- lib/cleanup.php | 2 +- lib/widgets.php | 2 +- templates/header-top-navbar.php | 2 +- templates/searchform.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/cleanup.php b/lib/cleanup.php index d6bed38..0f5c929 100644 --- a/lib/cleanup.php +++ b/lib/cleanup.php @@ -227,7 +227,7 @@ function roots_nice_search_redirect() { $search_base = $wp_rewrite->search_base; if (is_search() && !is_admin() && strpos($_SERVER['REQUEST_URI'], "/{$search_base}/") === false) { - wp_redirect(home_url("/{$search_base}/" . urlencode(get_query_var('s')))); + wp_redirect(esc_url(home_url("/{$search_base}/" . urlencode(get_query_var('s'))))); exit(); } } diff --git a/lib/widgets.php b/lib/widgets.php index 377b1ab..01ac820 100644 --- a/lib/widgets.php +++ b/lib/widgets.php @@ -84,7 +84,7 @@ class Roots_Vcard_Widget extends WP_Widget { } ?>

-
+

, diff --git a/templates/header-top-navbar.php b/templates/header-top-navbar.php index 7589fe8..d83e631 100644 --- a/templates/header-top-navbar.php +++ b/templates/header-top-navbar.php @@ -7,7 +7,7 @@ - +