Referencing ConditionalTagCheck directly

This commit is contained in:
Kalen Johnson
2015-03-18 14:09:10 -07:00
parent 897782e65d
commit 796eaf1600

View File

@@ -2,7 +2,7 @@
namespace Roots\Sage\Config; namespace Roots\Sage\Config;
use Roots\Sage; use Roots\Sage\ConditionalTagCheck;
/** /**
* Enable theme features * Enable theme features
@@ -40,7 +40,7 @@ function display_sidebar() {
static $display; static $display;
if (!isset($display)) { if (!isset($display)) {
$conditionalCheck = new Sage\ConditionalTagCheck( $conditionalCheck = new ConditionalTagCheck(
/** /**
* Any of these conditional tags that return true won't show the sidebar. * Any of these conditional tags that return true won't show the sidebar.
* You can also specify your own custom function as long as it returns a boolean. * You can also specify your own custom function as long as it returns a boolean.