Skip to content

Commit 8983c6b

Browse files
Twenty Fourteen: 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@60519 602fd350-edb4-49c9-b593-d223f7449a82
1 parent ad26127 commit 8983c6b

File tree

8 files changed

+62
-62
lines changed

8 files changed

+62
-62
lines changed

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Twenty Fourteen 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
*
@@ -223,7 +223,7 @@ function twentyfourteen_setup() {
223223
add_action( 'after_setup_theme', 'twentyfourteen_setup' );
224224

225225
/**
226-
* Adjust content_width value for image attachment template.
226+
* Adjusts content_width value for image attachment template.
227227
*
228228
* @since Twenty Fourteen 1.0
229229
*/
@@ -264,7 +264,7 @@ function twentyfourteen_has_featured_posts() {
264264
}
265265

266266
/**
267-
* Register three Twenty Fourteen widget areas.
267+
* Registers three Twenty Fourteen widget areas.
268268
*
269269
* @since Twenty Fourteen 1.0
270270
*/
@@ -310,7 +310,7 @@ function twentyfourteen_widgets_init() {
310310

311311
if ( ! function_exists( 'twentyfourteen_font_url' ) ) :
312312
/**
313-
* Register Lato font for Twenty Fourteen.
313+
* Registers Lato font for Twenty Fourteen.
314314
*
315315
* @since Twenty Fourteen 1.0
316316
* @since Twenty Fourteen 3.6 Replaced Google URL with self-hosted fonts.
@@ -332,7 +332,7 @@ function twentyfourteen_font_url() {
332332
endif;
333333

334334
/**
335-
* Enqueue scripts and styles for the front end.
335+
* Enqueues scripts and styles for the front end.
336336
*
337337
* @since Twenty Fourteen 1.0
338338
*/
@@ -401,7 +401,7 @@ function twentyfourteen_scripts() {
401401
add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' );
402402

403403
/**
404-
* Enqueue font stylesheet to admin screen for custom header display.
404+
* Enqueues font stylesheet to admin screen for custom header display.
405405
*
406406
* @since Twenty Fourteen 1.0
407407
*/
@@ -412,7 +412,7 @@ function twentyfourteen_admin_fonts() {
412412
add_action( 'admin_print_scripts-appearance_page_custom-header', 'twentyfourteen_admin_fonts' );
413413

414414
/**
415-
* Add preconnect for Google Fonts.
415+
* Adds preconnect for Google Fonts.
416416
*
417417
* @since Twenty Fourteen 1.9
418418
* @deprecated Twenty Fourteen 3.6 Disabled filter because, by default, fonts are self-hosted.
@@ -438,7 +438,7 @@ function twentyfourteen_resource_hints( $urls, $relation_type ) {
438438
// add_filter( 'wp_resource_hints', 'twentyfourteen_resource_hints', 10, 2 );
439439

440440
/**
441-
* Enqueue styles for the block-based editor.
441+
* Enqueues styles for the block-based editor.
442442
*
443443
* @since Twenty Fourteen 2.3
444444
*/
@@ -453,7 +453,7 @@ function twentyfourteen_block_editor_styles() {
453453

454454
if ( ! function_exists( 'twentyfourteen_the_attached_image' ) ) :
455455
/**
456-
* Print the attached image with a link to the next attached image.
456+
* Prints the attached image with a link to the next attached image.
457457
*
458458
* @since Twenty Fourteen 1.0
459459
*/
@@ -521,7 +521,7 @@ function twentyfourteen_the_attached_image() {
521521

522522
if ( ! function_exists( 'twentyfourteen_list_authors' ) ) :
523523
/**
524-
* Print a list of all site contributors who published at least one post.
524+
* Prints a list of all site contributors who published at least one post.
525525
*
526526
* @since Twenty Fourteen 1.0
527527
*/
@@ -583,7 +583,7 @@ function twentyfourteen_list_authors() {
583583
endif;
584584

585585
/**
586-
* Extend the default WordPress body classes.
586+
* Extends the default WordPress body classes.
587587
*
588588
* Adds body classes to denote:
589589
* 1. Single or multiple authors.
@@ -640,7 +640,7 @@ function twentyfourteen_body_classes( $classes ) {
640640
add_filter( 'body_class', 'twentyfourteen_body_classes' );
641641

642642
/**
643-
* Extend the default WordPress post classes.
643+
* Extends the default WordPress post classes.
644644
*
645645
* Adds a post class to denote:
646646
* Non-password protected page with a post thumbnail.
@@ -660,7 +660,7 @@ function twentyfourteen_post_classes( $classes ) {
660660
add_filter( 'post_class', 'twentyfourteen_post_classes' );
661661

662662
/**
663-
* Create a nicely formatted and more specific title element text for output
663+
* Creates a nicely formatted and more specific title element text for output
664664
* in head of document, based on current view.
665665
*
666666
* @since Twenty Fourteen 1.0
@@ -729,7 +729,7 @@ function twentyfourteen_widget_tag_cloud_args( $args ) {
729729
require get_template_directory() . '/inc/customizer.php';
730730

731731
/**
732-
* Register block patterns and pattern categories.
732+
* Registers block patterns and pattern categories.
733733
*
734734
* @since Twenty Fourteen 4.1
735735
*/
@@ -750,7 +750,7 @@ function twentyfourteen_register_block_patterns() {
750750
}
751751

752752
/**
753-
* Add an `is_customize_preview` function if it is missing.
753+
* Adds an `is_customize_preview` function if it is missing.
754754
*
755755
* Enables installing Twenty Fourteen in WordPress versions before 4.0.0 when the
756756
* `is_customize_preview` function was introduced.

src/wp-content/themes/twentyfourteen/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 Fourteen on old versions of WordPress.
15+
* Prevents switching to Twenty Fourteen on old versions of WordPress.
1616
*
1717
* Switches to the default theme.
1818
*
@@ -26,7 +26,7 @@ function twentyfourteen_switch_theme() {
2626
add_action( 'after_switch_theme', 'twentyfourteen_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 Fourteen on WordPress versions prior to 3.6.
@@ -45,7 +45,7 @@ function twentyfourteen_upgrade_notice() {
4545
}
4646

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

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

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22
/**
3-
* Implement Custom Header functionality for Twenty Fourteen
3+
* Implements Custom Header functionality for Twenty Fourteen
44
*
55
* @package WordPress
66
* @subpackage Twenty_Fourteen
77
* @since Twenty Fourteen 1.0
88
*/
99

1010
/**
11-
* Set up the WordPress core custom header settings.
11+
* Sets up the WordPress core custom header settings.
1212
*
1313
* @since Twenty Fourteen 1.0
1414
*
@@ -55,7 +55,7 @@ function twentyfourteen_custom_header_setup() {
5555

5656
if ( ! function_exists( 'twentyfourteen_header_style' ) ) :
5757
/**
58-
* Styles the header image and text displayed on the blog
58+
* Styles the header image and text displayed on the blog.
5959
*
6060
* @see twentyfourteen_custom_header_setup().
6161
*/
@@ -95,7 +95,7 @@ function twentyfourteen_header_style() {
9595

9696
if ( ! function_exists( 'twentyfourteen_admin_header_style' ) ) :
9797
/**
98-
* Style the header image displayed on the Appearance > Header screen.
98+
* Styles the header image displayed on the Appearance > Header screen.
9999
*
100100
* @see twentyfourteen_custom_header_setup()
101101
*
@@ -133,7 +133,7 @@ function twentyfourteen_admin_header_style() {
133133

134134
if ( ! function_exists( 'twentyfourteen_admin_header_image' ) ) :
135135
/**
136-
* Create the custom header image markup displayed on the Appearance > Header screen.
136+
* Creates the custom header image markup displayed on the Appearance > Header screen.
137137
*
138138
* @see twentyfourteen_custom_header_setup()
139139
*
@@ -154,7 +154,7 @@ function twentyfourteen_admin_header_image() {
154154

155155
if ( ! function_exists( 'twentyfourteen_header_image' ) ) :
156156
/**
157-
* Create the custom header image markup displayed.
157+
* Creates the custom header image markup displayed.
158158
*
159159
* @see twentyfourteen_custom_header_setup()
160160
*

src/wp-content/themes/twentyfourteen/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-
* Implement Customizer additions and adjustments.
11+
* Implements Customizer additions and adjustments.
1212
*
1313
* @since Twenty Fourteen 1.0
1414
*
@@ -95,7 +95,7 @@ function twentyfourteen_customize_register( $wp_customize ) {
9595
add_action( 'customize_register', 'twentyfourteen_customize_register' );
9696

9797
/**
98-
* Render the site title for the selective refresh partial.
98+
* Renders the site title for the selective refresh partial.
9999
*
100100
* @since Twenty Fourteen 1.7
101101
*
@@ -108,7 +108,7 @@ function twentyfourteen_customize_partial_blogname() {
108108
}
109109

110110
/**
111-
* Render the site tagline for the selective refresh partial.
111+
* Renders the site tagline for the selective refresh partial.
112112
*
113113
* @since Twenty Fourteen 1.7
114114
*
@@ -121,7 +121,7 @@ function twentyfourteen_customize_partial_blogdescription() {
121121
}
122122

123123
/**
124-
* Sanitize the Featured Content layout value.
124+
* Sanitizes the Featured Content layout value.
125125
*
126126
* @since Twenty Fourteen 1.0
127127
*
@@ -137,7 +137,7 @@ function twentyfourteen_sanitize_layout( $layout ) {
137137
}
138138

139139
/**
140-
* Bind JS handlers to make Customizer preview reload changes asynchronously.
140+
* Binds JS handlers to make Customizer preview reload changes asynchronously.
141141
*
142142
* @since Twenty Fourteen 1.0
143143
*/
@@ -147,7 +147,7 @@ function twentyfourteen_customize_preview_js() {
147147
add_action( 'customize_preview_init', 'twentyfourteen_customize_preview_js' );
148148

149149
/**
150-
* Add contextual help to the Themes and Post edit screens.
150+
* Adds contextual help to the Themes and Post edit screens.
151151
*
152152
* @since Twenty Fourteen 1.0
153153
*/

0 commit comments

Comments
 (0)