Minor naming tweak
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines whether or not to display the sidebar based on an array of conditional tags or page templates.
|
* Determines whether or not to display the sidebar based on an array of conditional tags or page templates.
|
||||||
*
|
*
|
||||||
@@ -35,13 +34,12 @@ class Roots_Sidebar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function check_conditional_tag($conditional_tag) {
|
private function check_conditional_tag($conditional_tag) {
|
||||||
$function = "is_$conditional_tag";
|
$conditional_tag_function = "is_$conditional_tag";
|
||||||
return $function();
|
return $conditional_tag_function();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function check_page_template($page_template) {
|
private function check_page_template($page_template) {
|
||||||
return is_page_template($page_template . self::EXTENSION);
|
return is_page_template($page_template . self::EXTENSION);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user