diff --git a/lib/activation.php b/lib/activation.php index 4b677d6..fef50f7 100644 --- a/lib/activation.php +++ b/lib/activation.php @@ -15,7 +15,7 @@ function roots_theme_activation_options_init() { } add_action('admin_init', 'roots_theme_activation_options_init'); -function roots_activation_options_page_capability($capability) { +function roots_activation_options_page_capability() { return 'edit_theme_options'; } add_filter('option_page_capability_roots_activation_options', 'roots_activation_options_page_capability'); @@ -24,7 +24,7 @@ function roots_theme_activation_options_add_page() { $roots_activation_options = roots_get_theme_activation_options(); if (!$roots_activation_options) { - $theme_page = add_theme_page( + add_theme_page( __('Theme Activation', 'roots'), __('Theme Activation', 'roots'), 'edit_theme_options', @@ -141,7 +141,7 @@ function roots_theme_activation_action() { 'post_type' => 'page' ); - $result = wp_insert_post($add_default_pages); + wp_insert_post($add_default_pages); } $home = get_page_by_title(__('Home', 'roots')); diff --git a/lib/extras.php b/lib/extras.php index f4d9810..994ff30 100644 --- a/lib/extras.php +++ b/lib/extras.php @@ -2,7 +2,7 @@ /** * Clean up the_excerpt() */ -function roots_excerpt_more($more) { +function roots_excerpt_more() { return ' … ' . __('Continued', 'roots') . ''; } add_filter('excerpt_more', 'roots_excerpt_more'); diff --git a/lib/gallery.php b/lib/gallery.php index 67f4d01..975a8ed 100644 --- a/lib/gallery.php +++ b/lib/gallery.php @@ -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('