' . sprintf( __( 'Continue reading %s', 'twentyseventeen' ), the_title( '"', '"', false ) ) . '
'; @@ -288,7 +288,7 @@ function twentyseventeen_scripts() { /** * Add custom image sizes attribute to enhance responsive image functionality - * for content images + * for content images. * * @since Twenty Seventeen 1.0 * @@ -314,13 +314,13 @@ function twentyseventeen_content_image_sizes_attr( $sizes, $size ) { /** * Add custom image sizes attribute to enhance responsive image functionality - * for post thumbnails + * for post thumbnails. * * @since Twenty Seventeen 1.0 * - * @param array $attr Attributes for the image markup. + * @param array $attr Attributes for the image markup. * @param int $attachment Image attachment ID. - * @param array $size Registered image size or flat array of height and width dimensions. + * @param array $size Registered image size or flat array of height and width dimensions. * @return string A source size value for use in a post thumbnail 'sizes' attribute. */ function twentyseventeen_post_thumbnail_sizes_attr( $attr, $attachment, $size ) { diff --git a/header.php b/header.php index 3b4875a5ed..b902acbf07 100644 --- a/header.php +++ b/header.php @@ -39,7 +39,7 @@ '; the_post_thumbnail( 'twentyseventeen-featured-image' ); diff --git a/inc/custom-header.php b/inc/custom-header.php index 6b844dd4c2..1b7f1ca685 100644 --- a/inc/custom-header.php +++ b/inc/custom-header.php @@ -36,14 +36,14 @@ function twentyseventeen_custom_header_setup() { if ( ! function_exists( 'twentyseventeen_header_style' ) ) : /** - * Styles the header image and text displayed on the blog + * Styles the header image and text displayed on the blog. * * @see twentyseventeen_custom_header_setup(). */ function twentyseventeen_header_style() { $header_text_color = get_header_textcolor(); - // If no custom options for text are set, let's bail + // If no custom options for text are set, let's bail. // get_header_textcolor() options: add_theme_support( 'custom-header' ) is default, hide text (returns 'blank') or any hex value. if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) { return; diff --git a/inc/customizer.php b/inc/customizer.php index 92e307fcb2..b8c45b5c82 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -1,6 +1,6 @@ 'colors', 'priority' => 6, - 'description' => 'Temporary hue slider will be replaced with a visual hue picker that is only shown when a custom scheme is selected', // temporary, intentionally untranslated - // @todo change this to a visual hue picker control, ideally extending the color control and leveraging iris by adding a `hue` mode in core + 'description' => 'Temporary hue slider will be replaced with a visual hue picker that is only shown when a custom scheme is selected', // temporary, intentionally untranslated. + // @todo change this to a visual hue picker control, ideally extending the color control and leveraging iris by adding a `hue` mode in core. // See https://core.trac.wordpress.org/ticket/38263 - // @todo only show this control when the colorscheme is custom + // @todo only show this control when the colorscheme is custom. ) ); /** - * Add the Theme Options section + * Add the Theme Options section. */ $wp_customize->add_panel( 'options_panel', array( 'title' => __( 'Theme Options', 'twentyseventeen' ), diff --git a/inc/icon-functions.php b/inc/icon-functions.php index 7927bf9bcc..13034b3c5d 100644 --- a/inc/icon-functions.php +++ b/inc/icon-functions.php @@ -1,6 +1,6 @@ twentyseventeen_get_svg( array( 'icon' => 'previous' ) ) . '' . __( 'Previous page', 'twentyseventeen' ) . '', diff --git a/single.php b/single.php index 57ec6f42c6..f1b3721a47 100644 --- a/single.php +++ b/single.php @@ -17,6 +17,7 @@
"', '"', false )
) );
diff --git a/functions.php b/functions.php
index 644ccde9ea..266c23adcc 100644
--- a/functions.php
+++ b/functions.php
@@ -124,7 +124,7 @@ function twentyseventeen_content_width() {
add_action( 'after_setup_theme', 'twentyseventeen_content_width', 0 );
/**
- * Register custom fonts
+ * Register custom fonts.
*/
function twentyseventeen_fonts_url() {
$fonts_url = '';
@@ -192,7 +192,7 @@ function twentyseventeen_widgets_init() {
if ( ! function_exists( 'twentyseventeen_excerpt_continue_reading' ) ) :
/**
- * Replaces the excerpt "more" text by a link
+ * Replaces the excerpt "more" text by a link.
*/
function twentyseventeen_excerpt_continue_reading() {
return ' …