Fixing dead variables and params
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Clean up the_excerpt()
|
||||
*/
|
||||
function roots_excerpt_more($more) {
|
||||
function roots_excerpt_more() {
|
||||
return ' … <a href="' . get_permalink() . '">' . __('Continued', 'roots') . '</a>';
|
||||
}
|
||||
add_filter('excerpt_more', 'roots_excerpt_more');
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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']) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user