From cdd101e16c5fa30e15130a6a16b1714cea350bc6 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Mon, 14 Dec 2015 18:05:14 -0800 Subject: [PATCH] Remove comments not ending in a period. Helps avoid Travis CI errors for wrongly formatted comments. Most of these end of function comments (if not all) are useless anyway. Props @WPAddiction for reporting. Fixes #891. --- 404.php | 3 ++- functions.php | 2 +- inc/custom-header.php | 10 ++++++---- inc/jetpack.php | 4 ++-- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/404.php b/404.php index f31cfc06..d41bd330 100644 --- a/404.php +++ b/404.php @@ -25,7 +25,8 @@ get_header(); ?> the_widget( 'WP_Widget_Recent_Posts' ); - if ( _s_categorized_blog() ) : // Only show the widget if site has multiple categories. + // Only show the widget if site has multiple categories. + if ( _s_categorized_blog() ) : ?>
diff --git a/functions.php b/functions.php index 16678312..83a2348b 100644 --- a/functions.php +++ b/functions.php @@ -77,7 +77,7 @@ function _s_setup() { 'default-image' => '', ) ) ); } -endif; // _s_setup +endif; add_action( 'after_setup_theme', '_s_setup' ); /** diff --git a/inc/custom-header.php b/inc/custom-header.php index 83288075..cfa68f8d 100644 --- a/inc/custom-header.php +++ b/inc/custom-header.php @@ -34,15 +34,17 @@ add_action( 'after_setup_theme', '_s_custom_header_setup' ); if ( ! function_exists( '_s_header_style' ) ) : /** - * Styles the header image and text displayed on the blog + * Styles the header image and text displayed on the blog. * * @see _s_custom_header_setup(). */ function _s_header_style() { $header_text_color = get_header_textcolor(); - // If no custom options for text are set, let's bail - // get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value. + /* + * If no custom options for text are set, let's bail. + * get_header_textcolor() options: Any hex value, 'blank' to hide text. Default: HEADER_TEXTCOLOR. + */ if ( HEADER_TEXTCOLOR === $header_text_color ) { return; } @@ -71,4 +73,4 @@ function _s_header_style() {