Fix callback reference
This commit is contained in:
@@ -20,8 +20,8 @@ class Roots_Sidebar {
|
||||
$this->conditionals = $conditionals;
|
||||
$this->templates = $templates;
|
||||
|
||||
$conditionals = array_map($this->check_conditional_tag, $this->conditionals);
|
||||
$templates = array_map($this->check_page_template, $this->templates);
|
||||
$conditionals = array_map(array($this, 'check_conditional_tag'), $this->conditionals);
|
||||
$templates = array_map(array($this, 'check_page_template'), $this->templates);
|
||||
|
||||
if (in_array(true, $conditionals) || in_array(true, $templates)) {
|
||||
$this->display = false;
|
||||
|
||||
Reference in New Issue
Block a user