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.
This commit is contained in:
Konstantin Obenland 2015-12-14 18:05:14 -08:00
parent 8183b95b95
commit cdd101e16c
4 changed files with 11 additions and 8 deletions

View File

@ -25,7 +25,8 @@ get_header(); ?>
the_widget( 'WP_Widget_Recent_Posts' ); 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() ) :
?> ?>
<div class="widget widget_categories"> <div class="widget widget_categories">

View File

@ -77,7 +77,7 @@ function _s_setup() {
'default-image' => '', 'default-image' => '',
) ) ); ) ) );
} }
endif; // _s_setup endif;
add_action( 'after_setup_theme', '_s_setup' ); add_action( 'after_setup_theme', '_s_setup' );
/** /**

View File

@ -34,15 +34,17 @@ add_action( 'after_setup_theme', '_s_custom_header_setup' );
if ( ! function_exists( '_s_header_style' ) ) : 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(). * @see _s_custom_header_setup().
*/ */
function _s_header_style() { function _s_header_style() {
$header_text_color = get_header_textcolor(); $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 ) { if ( HEADER_TEXTCOLOR === $header_text_color ) {
return; return;
} }
@ -71,4 +73,4 @@ function _s_header_style() {
</style> </style>
<?php <?php
} }
endif; // _s_header_style endif;

View File

@ -23,7 +23,7 @@ function _s_jetpack_setup() {
// Add theme support for Responsive Videos. // Add theme support for Responsive Videos.
add_theme_support( 'jetpack-responsive-videos' ); add_theme_support( 'jetpack-responsive-videos' );
} // end function _s_jetpack_setup }
add_action( 'after_setup_theme', '_s_jetpack_setup' ); add_action( 'after_setup_theme', '_s_jetpack_setup' );
/** /**
@ -38,4 +38,4 @@ function _s_infinite_scroll_render() {
get_template_part( 'template-parts/content', get_post_format() ); get_template_part( 'template-parts/content', get_post_format() );
endif; endif;
} }
} // end function _s_infinite_scroll_render }