Allow the sidebar config functions to accepts args

This commit is contained in:
Scott Walkinshaw
2012-10-03 14:53:30 -04:00
parent 3df8d9901e
commit a27b194fe6
2 changed files with 11 additions and 1 deletions

View File

@@ -29,7 +29,11 @@ class Roots_Sidebar {
}
private function check_conditional_tag($conditional_tag) {
return $conditional_tag();
if (is_array($conditional_tag)) {
return call_user_func_array($conditional_tag[0], $conditional_tag[1]);
} else {
return $conditional_tag();
}
}
private function check_page_template($page_template) {