Fixing dead variables and params

This commit is contained in:
alexsomeoddpilot
2014-10-30 09:24:33 -05:00
parent 246594f230
commit 2e470c7903
4 changed files with 4 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
/**
* Clean up the_excerpt()
*/
function roots_excerpt_more($more) {
function roots_excerpt_more() {
return ' &hellip; <a href="' . get_permalink() . '">' . __('Continued', 'roots') . '</a>';
}
add_filter('excerpt_more', 'roots_excerpt_more');

View File

@@ -123,7 +123,6 @@ if (current_theme_supports('bootstrap-gallery')) {
* Add class="thumbnail img-thumbnail" to attachment items
*/
function roots_attachment_link_class($html) {
$postid = get_the_ID();
$html = str_replace('<a', '<a class="thumbnail img-thumbnail"', $html);
return $html;
}

View File

@@ -74,6 +74,8 @@ add_filter('nav_menu_item_id', '__return_null');
* Use Roots_Nav_Walker() by default
*/
function roots_nav_menu_args($args = '') {
$roots_nav_menu_args = array();
$roots_nav_menu_args['container'] = false;
if (!$args['items_wrap']) {

View File

@@ -8,7 +8,7 @@ function is_element_empty($element) {
}
// Tell WordPress to use searchform.php from the templates/ directory
function roots_get_search_form($form) {
function roots_get_search_form() {
$form = '';
locate_template('/templates/searchform.php', true, false);
return $form;