Skip to content

Commit 5c7fa0b

Browse files
Twenty Eleven: 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@60506 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d5aeef5 commit 5c7fa0b

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ function twentyeleven_setup() {
298298
endif; // twentyeleven_setup()
299299

300300
/**
301-
* Enqueue scripts and styles for front end.
301+
* Enqueues scripts and styles for front end.
302302
*
303303
* @since Twenty Eleven 2.9
304304
*/
@@ -309,7 +309,7 @@ function twentyeleven_scripts_styles() {
309309
add_action( 'wp_enqueue_scripts', 'twentyeleven_scripts_styles' );
310310

311311
/**
312-
* Enqueue styles for the block-based editor.
312+
* Enqueues styles for the block-based editor.
313313
*
314314
* @since Twenty Eleven 2.9
315315
*/
@@ -473,7 +473,7 @@ function twentyeleven_header_image() {
473473
endif; // twentyeleven_header_image()
474474

475475
/**
476-
* Set the post excerpt length to 40 words.
476+
* Sets the post excerpt length to 40 words.
477477
*
478478
* To override this length in a child theme, remove
479479
* the filter and add your own function tied to
@@ -524,7 +524,7 @@ function twentyeleven_auto_excerpt_more( $more ) {
524524
add_filter( 'excerpt_more', 'twentyeleven_auto_excerpt_more' );
525525

526526
/**
527-
* Add a pretty "Continue Reading" link to custom post excerpts.
527+
* Adds a pretty "Continue Reading" link to custom post excerpts.
528528
*
529529
* To override this link in a child theme, remove the filter and add your own
530530
* function tied to the get_the_excerpt filter hook.
@@ -543,7 +543,7 @@ function twentyeleven_custom_excerpt_more( $output ) {
543543
add_filter( 'get_the_excerpt', 'twentyeleven_custom_excerpt_more' );
544544

545545
/**
546-
* Show a home link for the wp_nav_menu() fallback, wp_page_menu().
546+
* Shows a home link for the wp_nav_menu() fallback, wp_page_menu().
547547
*
548548
* @since Twenty Eleven 1.0
549549
*
@@ -559,7 +559,7 @@ function twentyeleven_page_menu_args( $args ) {
559559
add_filter( 'wp_page_menu_args', 'twentyeleven_page_menu_args' );
560560

561561
/**
562-
* Register sidebars and widgetized areas.
562+
* Registers sidebars and widgetized areas.
563563
*
564564
* Also register the default Ephemera widget.
565565
*
@@ -632,7 +632,7 @@ function twentyeleven_widgets_init() {
632632

633633
if ( ! function_exists( 'twentyeleven_content_nav' ) ) :
634634
/**
635-
* Display navigation to next/previous pages when applicable.
635+
* Displays navigation to next/previous pages when applicable.
636636
*
637637
* @since Twenty Eleven 1.0
638638
*
@@ -851,7 +851,7 @@ function twentyeleven_posted_on() {
851851
endif;
852852

853853
/**
854-
* Add two classes to the array of body classes.
854+
* Adds two classes to the array of body classes.
855855
*
856856
* The first is if the site has only had one author with published posts.
857857
* The second is if a singular post being displayed
@@ -876,7 +876,7 @@ function twentyeleven_body_classes( $classes ) {
876876
add_filter( 'body_class', 'twentyeleven_body_classes' );
877877

878878
/**
879-
* Retrieve the IDs for images in a gallery.
879+
* Retrieves the IDs for images in a gallery.
880880
*
881881
* @uses get_post_galleries() First, if available. Falls back to shortcode parsing,
882882
* then as last option uses a get_posts() call.

src/wp-content/themes/twentyeleven/inc/block-patterns.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212

1313
/**
14-
* Register Block Pattern Category.
14+
* Registers Block Pattern Category.
1515
*/
1616
if ( function_exists( 'register_block_pattern_category' ) ) {
1717

@@ -22,7 +22,7 @@
2222
}
2323

2424
/**
25-
* Register Block Patterns.
25+
* Registers Block Patterns.
2626
*/
2727
if ( function_exists( 'register_block_pattern' ) ) {
2828

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function twentyeleven_admin_enqueue_scripts( $hook_suffix ) {
2424
add_action( 'admin_print_styles-appearance_page_theme_options', 'twentyeleven_admin_enqueue_scripts' );
2525

2626
/**
27-
* Register the form setting for our twentyeleven_options array.
27+
* Registers the form setting for our twentyeleven_options array.
2828
*
2929
* This function is attached to the admin_init action hook.
3030
*
@@ -84,7 +84,7 @@ function twentyeleven_option_page_capability( $capability ) {
8484
add_filter( 'option_page_capability_twentyeleven_options', 'twentyeleven_option_page_capability' );
8585

8686
/**
87-
* Add a theme options page to the admin menu, including some help documentation.
87+
* Adds a theme options page to the admin menu, including some help documentation.
8888
*
8989
* This function is attached to the admin_menu action hook.
9090
*
@@ -409,7 +409,7 @@ function twentyeleven_theme_options_validate( $input ) {
409409
}
410410

411411
/**
412-
* Enqueue the styles for the current color scheme.
412+
* Enqueues the styles for the current color scheme.
413413
*
414414
* @since Twenty Eleven 1.0
415415
*/
@@ -433,7 +433,7 @@ function twentyeleven_enqueue_color_scheme() {
433433
add_action( 'wp_enqueue_scripts', 'twentyeleven_enqueue_color_scheme' );
434434

435435
/**
436-
* Add a style block to the theme for the current link color.
436+
* Adds a style block to the theme for the current link color.
437437
*
438438
* This function is attached to the wp_head action hook.
439439
*
@@ -482,7 +482,7 @@ function twentyeleven_print_link_color_style() {
482482
add_action( 'wp_head', 'twentyeleven_print_link_color_style' );
483483

484484
/**
485-
* Add Twenty Eleven layout classes to the array of body classes.
485+
* Adds Twenty Eleven layout classes to the array of body classes.
486486
*
487487
* @since Twenty Eleven 1.0
488488
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public function flush_widget_cache() {
181181
}
182182

183183
/**
184-
* Set up the widget form.
184+
* Sets up the widget form.
185185
*
186186
* Displays the form for this widget on the Widgets page of the WP Admin area.
187187
*

0 commit comments

Comments
 (0)