Skip to content

Commit d8ec789

Browse files
Twenty Sixteen: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips]. Props vladimiraus, mukesh27, SergeyBiryukov. See #63692. git-svn-id: https://develop.svn.wordpress.org/trunk@60527 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 1a9a67d commit d8ec789

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

src/wp-content/themes/twentysixteen/functions.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Twenty Sixteen functions and definitions
44
*
5-
* Set up the theme and provides some helper functions, which are used in the
5+
* Sets up the theme and provides some helper functions, which are used in the
66
* theme as custom template tags. Others are attached to action and filter
77
* hooks in WordPress to change core functionality.
88
*
@@ -251,7 +251,7 @@ function twentysixteen_content_width() {
251251
add_action( 'after_setup_theme', 'twentysixteen_content_width', 0 );
252252

253253
/**
254-
* Add preconnect for Google Fonts.
254+
* Adds preconnect for Google Fonts.
255255
*
256256
* @since Twenty Sixteen 1.6
257257
* @deprecated Twenty Sixteen 2.9 Disabled filter because, by default, fonts are self-hosted.
@@ -320,7 +320,7 @@ function twentysixteen_widgets_init() {
320320

321321
if ( ! function_exists( 'twentysixteen_fonts_url' ) ) :
322322
/**
323-
* Register fonts for Twenty Sixteen.
323+
* Registers fonts for Twenty Sixteen.
324324
*
325325
* Create your own twentysixteen_fonts_url() function to override in a child theme.
326326
*
@@ -446,7 +446,7 @@ function twentysixteen_scripts() {
446446
add_action( 'wp_enqueue_scripts', 'twentysixteen_scripts' );
447447

448448
/**
449-
* Enqueue styles for the block-based editor.
449+
* Enqueues styles for the block-based editor.
450450
*
451451
* @since Twenty Sixteen 1.6
452452
*/
@@ -530,7 +530,7 @@ function twentysixteen_hex2rgb( $color ) {
530530

531531

532532
/**
533-
* Register block patterns and pattern categories.
533+
* Registers block patterns and pattern categories.
534534
*
535535
* @since Twenty Sixteen 3.4
536536
*/
@@ -546,7 +546,7 @@ function twentysixteen_register_block_patterns() {
546546
require get_template_directory() . '/inc/customizer.php';
547547

548548
/**
549-
* Add custom image sizes attribute to enhance responsive image functionality
549+
* Adds custom image sizes attribute to enhance responsive image functionality
550550
* for content images
551551
*
552552
* @since Twenty Sixteen 1.0
@@ -580,7 +580,7 @@ function twentysixteen_content_image_sizes_attr( $sizes, $size ) {
580580
add_filter( 'wp_calculate_image_sizes', 'twentysixteen_content_image_sizes_attr', 10, 2 );
581581

582582
/**
583-
* Add custom image sizes attribute to enhance responsive image functionality
583+
* Adds custom image sizes attribute to enhance responsive image functionality
584584
* for post thumbnails
585585
*
586586
* @since Twenty Sixteen 1.0

src/wp-content/themes/twentysixteen/inc/back-compat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
/**
15-
* Prevent switching to Twenty Sixteen on old versions of WordPress.
15+
* Prevents switching to Twenty Sixteen on old versions of WordPress.
1616
*
1717
* Switches to the default theme.
1818
*

src/wp-content/themes/twentysixteen/inc/customizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ function twentysixteen_customize_register( $wp_customize ) {
248248
add_action( 'customize_register', 'twentysixteen_customize_register', 11 );
249249

250250
/**
251-
* Render the site title for the selective refresh partial.
251+
* Renders the site title for the selective refresh partial.
252252
*
253253
* @since Twenty Sixteen 1.2
254254
*
@@ -261,7 +261,7 @@ function twentysixteen_customize_partial_blogname() {
261261
}
262262

263263
/**
264-
* Render the site tagline for the selective refresh partial.
264+
* Renders the site tagline for the selective refresh partial.
265265
*
266266
* @since Twenty Sixteen 1.2
267267
*

src/wp-content/themes/twentysixteen/inc/template-tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ function twentysixteen_the_custom_logo() {
277277

278278
if ( ! function_exists( 'wp_body_open' ) ) :
279279
/**
280-
* Fire the wp_body_open action.
280+
* Fires the wp_body_open action.
281281
*
282282
* Added for backward compatibility to support pre-5.2.0 WordPress versions.
283283
*

0 commit comments

Comments
 (0)