From 7ff73d0f6bdfbe6d0f19f081d36940b73b6eaae2 Mon Sep 17 00:00:00 2001 From: Mark Figueredo Date: Wed, 22 May 2013 15:29:53 -0300 Subject: [PATCH 1/2] Add roots_display_sidebar filter Add filter to sidebar display to have the ability to change when it is displayed in child themes and other circumstances. https://github.com/retlehs/roots/issues/767 --- lib/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config.php b/lib/config.php index a2c3caa..75b9d5c 100644 --- a/lib/config.php +++ b/lib/config.php @@ -67,7 +67,7 @@ function roots_display_sidebar() { ) ); - return $sidebar_config->display; + return apply_filters('roots_display_sidebar', $sidebar_config->display); } /** From 9fbecfc2c6c564f7e2322c3f29e8d47f3aa161c7 Mon Sep 17 00:00:00 2001 From: Mark Figueredo Date: Thu, 23 May 2013 12:06:42 -0300 Subject: [PATCH 2/2] Removed extra space before apply filters --- lib/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config.php b/lib/config.php index 75b9d5c..49b73ce 100644 --- a/lib/config.php +++ b/lib/config.php @@ -67,7 +67,7 @@ function roots_display_sidebar() { ) ); - return apply_filters('roots_display_sidebar', $sidebar_config->display); + return apply_filters('roots_display_sidebar', $sidebar_config->display); } /**