Skip to content

Commit 6e35a5f

Browse files
Twenty Eleven: Use third-person singular verbs for some more function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips]. Follow-up to [60506], [60507]. See #63692. git-svn-id: https://develop.svn.wordpress.org/trunk@60513 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7aa9857 commit 6e35a5f

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed

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

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

5353
if ( ! function_exists( 'twentyeleven_setup' ) ) :
5454
/**
55-
* Set up theme defaults and registers support for various WordPress features.
55+
* Sets up theme defaults and registers support for various WordPress features.
5656
*
5757
* Note that this function is hooked into the after_setup_theme hook, which runs
5858
* before the init hook. The init hook is too late for some features, such as indicating
@@ -411,7 +411,7 @@ function twentyeleven_admin_header_style() {
411411

412412
if ( ! function_exists( 'twentyeleven_admin_header_image' ) ) :
413413
/**
414-
* Custom header image markup displayed on the Appearance > Header admin panel.
414+
* Displays custom header image markup on the Appearance > Header admin panel.
415415
*
416416
* Referenced via add_theme_support('custom-header') in twentyeleven_setup().
417417
*
@@ -442,7 +442,7 @@ function twentyeleven_admin_header_image() {
442442

443443
if ( ! function_exists( 'twentyeleven_header_image' ) ) :
444444
/**
445-
* Custom header image markup displayed.
445+
* Displays custom header image markup.
446446
*
447447
* @since Twenty Eleven 4.5
448448
*/
@@ -491,7 +491,7 @@ function twentyeleven_excerpt_length( $length ) {
491491

492492
if ( ! function_exists( 'twentyeleven_continue_reading_link' ) ) :
493493
/**
494-
* Return a "Continue Reading" link for excerpts
494+
* Returns a "Continue Reading" link for excerpts.
495495
*
496496
* @since Twenty Eleven 1.0
497497
*
@@ -503,7 +503,7 @@ function twentyeleven_continue_reading_link() {
503503
endif; // twentyeleven_continue_reading_link()
504504

505505
/**
506-
* Replace "[...]" in the Read More link with an ellipsis.
506+
* Replaces "[...]" in the Read More link with an ellipsis.
507507
*
508508
* The "[...]" is appended to automatically generated excerpts.
509509
*
@@ -654,7 +654,7 @@ function twentyeleven_content_nav( $html_id ) {
654654
endif; // twentyeleven_content_nav()
655655

656656
/**
657-
* Return the first link from the post content. If none found, the
657+
* Returns the first link from the post content. If none found, the
658658
* post permalink is used as a fallback.
659659
*
660660
* @since Twenty Eleven 1.0
@@ -676,7 +676,7 @@ function twentyeleven_get_first_url() {
676676
}
677677

678678
/**
679-
* Return the URL for the first link found in the post content.
679+
* Returns the URL for the first link found in the post content.
680680
*
681681
* @since Twenty Eleven 1.0
682682
*
@@ -691,7 +691,7 @@ function twentyeleven_url_grabber() {
691691
}
692692

693693
/**
694-
* Count the number of footer sidebars to enable dynamic classes for the footer.
694+
* Counts the number of footer sidebars to enable dynamic classes for the footer.
695695
*
696696
* @since Twenty Eleven 1.0
697697
*/
@@ -828,7 +828,7 @@ function twentyeleven_comment( $comment, $args, $depth ) {
828828

829829
if ( ! function_exists( 'twentyeleven_posted_on' ) ) :
830830
/**
831-
* Print HTML with meta information for the current post-date/time and author.
831+
* Prints HTML with meta information for the current post-date/time and author.
832832
*
833833
* Create your own twentyeleven_posted_on to override in a child theme
834834
*
@@ -940,7 +940,7 @@ function twentyeleven_widget_tag_cloud_args( $args ) {
940940

941941
if ( ! function_exists( 'wp_body_open' ) ) :
942942
/**
943-
* Fire the wp_body_open action.
943+
* Fires the wp_body_open action.
944944
*
945945
* Added for backward compatibility to support pre-5.2.0 WordPress versions.
946946
*
@@ -957,7 +957,7 @@ function wp_body_open() {
957957
endif;
958958

959959
/**
960-
* Include a skip to content link at the top of the page so that users can bypass the menu.
960+
* Includes a skip to content link at the top of the page so that users can bypass the menu.
961961
*
962962
* @since Twenty Eleven 3.4
963963
*/

src/wp-content/themes/twentyeleven/inc/theme-options.php

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

1010
/**
11-
* Properly enqueue styles and scripts for our theme options page.
11+
* Properly enqueues styles and scripts for our theme options page.
1212
*
1313
* This function is attached to the admin_enqueue_scripts action hook.
1414
*
@@ -65,7 +65,7 @@ function twentyeleven_theme_options_init() {
6565
add_action( 'admin_init', 'twentyeleven_theme_options_init' );
6666

6767
/**
68-
* Change the capability required to save the 'twentyeleven_options' options group.
68+
* Changes the capability required to save the 'twentyeleven_options' options group.
6969
*
7070
* @see twentyeleven_theme_options_init() First parameter to register_setting() is the name of the options group.
7171
* @see twentyeleven_theme_options_add_page() The edit_theme_options capability is used for viewing the page.
@@ -141,7 +141,7 @@ function twentyeleven_theme_options_help() {
141141
}
142142

143143
/**
144-
* Return an array of color schemes registered for Twenty Eleven.
144+
* Returns an array of color schemes registered for Twenty Eleven.
145145
*
146146
* @since Twenty Eleven 1.0
147147
*/
@@ -172,7 +172,7 @@ function twentyeleven_color_schemes() {
172172
}
173173

174174
/**
175-
* Return an array of layout options registered for Twenty Eleven.
175+
* Returns an array of layout options registered for Twenty Eleven.
176176
*
177177
* @since Twenty Eleven 1.0
178178
*/
@@ -206,7 +206,7 @@ function twentyeleven_layouts() {
206206
}
207207

208208
/**
209-
* Return the default options for Twenty Eleven.
209+
* Returns the default options for Twenty Eleven.
210210
*
211211
* @since Twenty Eleven 1.0
212212
*
@@ -234,7 +234,7 @@ function twentyeleven_get_default_theme_options() {
234234
}
235235

236236
/**
237-
* Return the default link color for Twenty Eleven, based on color scheme.
237+
* Returns the default link color for Twenty Eleven, based on color scheme.
238238
*
239239
* @since Twenty Eleven 1.0
240240
*
@@ -257,7 +257,7 @@ function twentyeleven_get_default_link_color( $color_scheme = null ) {
257257
}
258258

259259
/**
260-
* Return the options array for Twenty Eleven.
260+
* Returns the options array for Twenty Eleven.
261261
*
262262
* @since Twenty Eleven 1.0
263263
*/
@@ -266,7 +266,7 @@ function twentyeleven_get_theme_options() {
266266
}
267267

268268
/**
269-
* Render the Color Scheme setting field.
269+
* Renders the Color Scheme setting field.
270270
*
271271
* @since Twenty Eleven 1.3
272272
*/
@@ -290,7 +290,7 @@ function twentyeleven_settings_field_color_scheme() {
290290
}
291291

292292
/**
293-
* Render the Link Color setting field.
293+
* Renders the Link Color setting field.
294294
*
295295
* @since Twenty Eleven 1.3
296296
*/
@@ -312,7 +312,7 @@ function twentyeleven_settings_field_link_color() {
312312
}
313313

314314
/**
315-
* Render the Layout setting field.
315+
* Renders the Layout setting field.
316316
*
317317
* @since Twenty Eleven 1.3
318318
*/
@@ -334,7 +334,7 @@ function twentyeleven_settings_field_layout() {
334334
}
335335

336336
/**
337-
* Render the theme options page for Twenty Eleven.
337+
* Renders the theme options page for Twenty Eleven.
338338
*
339339
* @since Twenty Eleven 1.2
340340
*/
@@ -362,7 +362,7 @@ function twentyeleven_theme_options_render_page() {
362362
}
363363

364364
/**
365-
* Sanitize and validate form input.
365+
* Sanitizes and validates form input.
366366
*
367367
* Accepts an array, return a sanitized array.
368368
*
@@ -640,7 +640,7 @@ function twentyeleven_customize_register( $wp_customize ) {
640640
add_action( 'customize_register', 'twentyeleven_customize_register' );
641641

642642
/**
643-
* Render the site title for the selective refresh partial.
643+
* Renders the site title for the selective refresh partial.
644644
*
645645
* @since Twenty Eleven 2.4
646646
*
@@ -653,7 +653,7 @@ function twentyeleven_customize_partial_blogname() {
653653
}
654654

655655
/**
656-
* Render the site tagline for the selective refresh partial.
656+
* Renders the site tagline for the selective refresh partial.
657657
*
658658
* @since Twenty Eleven 2.4
659659
*
@@ -666,7 +666,7 @@ function twentyeleven_customize_partial_blogdescription() {
666666
}
667667

668668
/**
669-
* Bind JS handlers to make Customizer preview reload changes asynchronously.
669+
* Binds JS handlers to make Customizer preview reload changes asynchronously.
670670
*
671671
* Used with blogname and blogdescription.
672672
*

src/wp-content/themes/twentyeleven/inc/widgets.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function widget( $args, $instance ) {
150150
}
151151

152152
/**
153-
* Update widget settings.
153+
* Updates widget settings.
154154
*
155155
* Deals with the settings when they are saved by the admin. Here is
156156
* where any validation should be dealt with.
@@ -172,7 +172,7 @@ public function update( $new_instance, $old_instance ) {
172172
}
173173

174174
/**
175-
* Flush widget cache.
175+
* Flushes widget cache.
176176
*
177177
* @since Twenty Eleven 1.0
178178
*/

0 commit comments

Comments
 (0)