Skip to content

Commit 54a06f8

Browse files
Twenty Fifteen: 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@60521 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 063a74f commit 54a06f8

File tree

7 files changed

+31
-31
lines changed

7 files changed

+31
-31
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Twenty Fifteen 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
*
@@ -338,7 +338,7 @@ function twentyfifteen_setup() {
338338
add_action( 'after_setup_theme', 'twentyfifteen_setup' );
339339

340340
/**
341-
* Register widget area.
341+
* Registers widget area.
342342
*
343343
* @since Twenty Fifteen 1.0
344344
*
@@ -361,7 +361,7 @@ function twentyfifteen_widgets_init() {
361361

362362
if ( ! function_exists( 'twentyfifteen_fonts_url' ) ) :
363363
/**
364-
* Register fonts for Twenty Fifteen.
364+
* Registers fonts for Twenty Fifteen.
365365
*
366366
* @since Twenty Fifteen 1.0
367367
* @since Twenty Fifteen 3.4 Replaced Google URL with self-hosted fonts.
@@ -417,7 +417,7 @@ function twentyfifteen_javascript_detection() {
417417
add_action( 'wp_head', 'twentyfifteen_javascript_detection', 0 );
418418

419419
/**
420-
* Enqueue scripts and styles.
420+
* Enqueues scripts and styles.
421421
*
422422
* @since Twenty Fifteen 1.0
423423
*/
@@ -478,7 +478,7 @@ function twentyfifteen_scripts() {
478478
add_action( 'wp_enqueue_scripts', 'twentyfifteen_scripts' );
479479

480480
/**
481-
* Enqueue styles for the block-based editor.
481+
* Enqueues styles for the block-based editor.
482482
*
483483
* @since Twenty Fifteen 2.1
484484
*/
@@ -493,7 +493,7 @@ function twentyfifteen_block_editor_styles() {
493493

494494

495495
/**
496-
* Add preconnect for Google Fonts.
496+
* Adds preconnect for Google Fonts.
497497
*
498498
* @since Twenty Fifteen 1.7
499499
* @deprecated Twenty Fifteen 3.4 Disabled filter because, by default, fonts are self-hosted.
@@ -519,7 +519,7 @@ function twentyfifteen_resource_hints( $urls, $relation_type ) {
519519
// add_filter( 'wp_resource_hints', 'twentyfifteen_resource_hints', 10, 2 );
520520

521521
/**
522-
* Add featured image as background image to post navigation elements.
522+
* Adds featured image as background image to post navigation elements.
523523
*
524524
* @since Twenty Fifteen 1.0
525525
*
@@ -561,7 +561,7 @@ function twentyfifteen_post_nav_background() {
561561
add_action( 'wp_enqueue_scripts', 'twentyfifteen_post_nav_background' );
562562

563563
/**
564-
* Display descriptions in main navigation.
564+
* Displays descriptions in main navigation.
565565
*
566566
* @since Twenty Fifteen 1.0
567567
*
@@ -581,7 +581,7 @@ function twentyfifteen_nav_description( $item_output, $item, $depth, $args ) {
581581
add_filter( 'walker_nav_menu_start_el', 'twentyfifteen_nav_description', 10, 4 );
582582

583583
/**
584-
* Add a `screen-reader-text` class to the search form's submit button.
584+
* Adds a `screen-reader-text` class to the search form's submit button.
585585
*
586586
* @since Twenty Fifteen 1.0
587587
*
@@ -657,7 +657,7 @@ function twentyfifteen_author_bio_template( $template ) {
657657
require get_template_directory() . '/inc/customizer.php';
658658

659659
/**
660-
* Register block patterns and pattern categories.
660+
* Registers block patterns and pattern categories.
661661
*
662662
* @since Twenty Fifteen 3.9
663663
*/

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
/**
15-
* Prevent switching to Twenty Fifteen on old versions of WordPress.
15+
* Prevents switching to Twenty Fifteen on old versions of WordPress.
1616
*
1717
* Switches to the default theme.
1818
*
@@ -26,7 +26,7 @@ function twentyfifteen_switch_theme() {
2626
add_action( 'after_switch_theme', 'twentyfifteen_switch_theme' );
2727

2828
/**
29-
* Add message for unsuccessful theme switch.
29+
* Adds message for unsuccessful theme switch.
3030
*
3131
* Prints an update nag after an unsuccessful attempt to switch to
3232
* Twenty Fifteen on WordPress versions prior to 4.1.
@@ -45,7 +45,7 @@ function twentyfifteen_upgrade_notice() {
4545
}
4646

4747
/**
48-
* Prevent the Customizer from being loaded on WordPress versions prior to 4.1.
48+
* Prevents the Customizer from being loaded on WordPress versions prior to 4.1.
4949
*
5050
* @since Twenty Fifteen 1.0
5151
*/
@@ -65,7 +65,7 @@ function twentyfifteen_customize() {
6565
add_action( 'load-customize.php', 'twentyfifteen_customize' );
6666

6767
/**
68-
* Prevent the Theme Preview from being loaded on WordPress versions prior to 4.1.
68+
* Prevents the Theme Preview from being loaded on WordPress versions prior to 4.1.
6969
*
7070
* @since Twenty Fifteen 1.0
7171
*/

src/wp-content/themes/twentyfifteen/inc/custom-header.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
/**
11-
* Set up the WordPress core custom header feature.
11+
* Sets up the WordPress core custom header feature.
1212
*
1313
* @uses twentyfifteen_header_style()
1414
*/
@@ -47,7 +47,7 @@ function twentyfifteen_custom_header_setup() {
4747
add_action( 'after_setup_theme', 'twentyfifteen_custom_header_setup' );
4848

4949
/**
50-
* Convert HEX to RGB.
50+
* Converts HEX to RGB.
5151
*
5252
* @since Twenty Fifteen 1.0
5353
*

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
/**
11-
* Add postMessage support for site title and description for the Customizer.
11+
* Adds postMessage support for site title and description for the Customizer.
1212
*
1313
* @since Twenty Fifteen 1.0
1414
*
@@ -113,7 +113,7 @@ function twentyfifteen_customize_register( $wp_customize ) {
113113
add_action( 'customize_register', 'twentyfifteen_customize_register', 11 );
114114

115115
/**
116-
* Render the site title for the selective refresh partial.
116+
* Renders the site title for the selective refresh partial.
117117
*
118118
* @since Twenty Fifteen 1.5
119119
*
@@ -126,7 +126,7 @@ function twentyfifteen_customize_partial_blogname() {
126126
}
127127

128128
/**
129-
* Render the site tagline for the selective refresh partial.
129+
* Renders the site tagline for the selective refresh partial.
130130
*
131131
* @since Twenty Fifteen 1.5
132132
*
@@ -139,7 +139,7 @@ function twentyfifteen_customize_partial_blogdescription() {
139139
}
140140

141141
/**
142-
* Register color schemes for Twenty Fifteen.
142+
* Registers color schemes for Twenty Fifteen.
143143
*
144144
* Can be filtered with {@see 'twentyfifteen_color_schemes'}.
145145
*
@@ -252,7 +252,7 @@ function twentyfifteen_get_color_schemes() {
252252

253253
if ( ! function_exists( 'twentyfifteen_get_color_scheme' ) ) :
254254
/**
255-
* Get the current Twenty Fifteen color scheme.
255+
* Gets the current Twenty Fifteen color scheme.
256256
*
257257
* @since Twenty Fifteen 1.0
258258
*
@@ -770,7 +770,7 @@ function twentyfifteen_get_color_scheme_css( $colors ) {
770770
}
771771

772772
/**
773-
* Output an Underscore template for generating CSS for the color scheme.
773+
* Outputs an Underscore template for generating CSS for the color scheme.
774774
*
775775
* The template generates the css dynamically for instant display in the Customizer
776776
* preview.

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
if ( ! function_exists( 'twentyfifteen_comment_nav' ) ) :
1313
/**
14-
* Display navigation to next/previous comments when applicable.
14+
* Displays navigation to next/previous comments when applicable.
1515
*
1616
* @since Twenty Fifteen 1.0
1717
*/
@@ -150,7 +150,7 @@ function twentyfifteen_entry_meta() {
150150
endif;
151151

152152
/**
153-
* Determine whether blog/site has more than one category.
153+
* Determines whether blog/site has more than one category.
154154
*
155155
* @since Twenty Fifteen 1.0
156156
*
@@ -186,7 +186,7 @@ function twentyfifteen_categorized_blog() {
186186
}
187187

188188
/**
189-
* Flush out the transients used in {@see twentyfifteen_categorized_blog()}.
189+
* Flushes out the transients used in {@see twentyfifteen_categorized_blog()}.
190190
*
191191
* @since Twenty Fifteen 1.0
192192
*/
@@ -199,7 +199,7 @@ function twentyfifteen_category_transient_flusher() {
199199

200200
if ( ! function_exists( 'twentyfifteen_post_thumbnail' ) ) :
201201
/**
202-
* Display an optional post thumbnail.
202+
* Displays an optional post thumbnail.
203203
*
204204
* Wraps the post thumbnail in an anchor element on index views, or a div
205205
* element when on single views.
@@ -233,7 +233,7 @@ function twentyfifteen_post_thumbnail() {
233233

234234
if ( ! function_exists( 'twentyfifteen_get_link_url' ) ) :
235235
/**
236-
* Return the post URL.
236+
* Returns the post URL.
237237
*
238238
* Falls back to the post permalink if no URL is found in the post.
239239
*
@@ -288,7 +288,7 @@ function twentyfifteen_the_custom_logo() {
288288

289289
if ( ! function_exists( 'wp_body_open' ) ) :
290290
/**
291-
* Fire the wp_body_open action.
291+
* Fires the wp_body_open action.
292292
*
293293
* Added for backward compatibility to support pre-5.2.0 WordPress versions.
294294
*

src/wp-content/themes/twentyfifteen/js/color-scheme-control.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* global colorScheme, Color */
22
/**
3-
* Add a listener to the Color Scheme control to update other color controls to new values/defaults.
4-
* Also trigger an update of the Color Scheme CSS when a color is changed.
3+
* Adds a listener to the Color Scheme control to update other color controls to new values/defaults.
4+
* Also triggers an update of the Color Scheme CSS when a color is changed.
55
*/
66

77
( function( api ) {

src/wp-content/themes/twentyfifteen/js/functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
} )();
9393

9494
/**
95-
* Add or remove ARIA attributes.
95+
* Adds or removes ARIA attributes.
9696
*
9797
* Uses jQuery's width() function to determine the size of the window and add
9898
* the default ARIA attributes for the menu toggle if it's visible.

0 commit comments

Comments
 (0)