Skip to content

Commit d5aeef5

Browse files
Twenty Ten: 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@60505 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 023e560 commit d5aeef5

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/wp-content/themes/twentyten/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/twentyten/functions.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
*/
4242

4343
/*
44-
* Set the content width based on the theme's design and stylesheet.
44+
* Sets the content width based on the theme's design and stylesheet.
4545
*
4646
* Used to set the width of images and content. Should be equal to the width the theme
4747
* is designed for, generally via the style.css stylesheet.
@@ -324,7 +324,7 @@ function twentyten_header_image() {
324324
endif; // twentyten_header_image()
325325

326326
/**
327-
* Show a home link for our wp_nav_menu() fallback, wp_page_menu().
327+
* Shows a home link for our wp_nav_menu() fallback, wp_page_menu().
328328
*
329329
* To override this in a child theme, remove the filter and optionally add
330330
* your own function tied to the wp_page_menu_args filter hook.
@@ -342,7 +342,7 @@ function twentyten_page_menu_args( $args ) {
342342
add_filter( 'wp_page_menu_args', 'twentyten_page_menu_args' );
343343

344344
/**
345-
* Set the post excerpt length to 40 characters.
345+
* Sets the post excerpt length to 40 characters.
346346
*
347347
* To override this length in a child theme, remove the filter and add your own
348348
* function tied to the excerpt_length filter hook.
@@ -392,7 +392,7 @@ function twentyten_auto_excerpt_more( $more ) {
392392
add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );
393393

394394
/**
395-
* Add a pretty "Continue Reading" link to custom post excerpts.
395+
* Adds a pretty "Continue Reading" link to custom post excerpts.
396396
*
397397
* To override this link in a child theme, remove the filter and add your own
398398
* function tied to the get_the_excerpt filter hook.
@@ -528,7 +528,7 @@ function twentyten_comment( $comment, $args, $depth ) {
528528
endif;
529529

530530
/**
531-
* Register widgetized areas, including two sidebars and four widget-ready columns in the footer.
531+
* Registers widgetized areas, including two sidebars and four widget-ready columns in the footer.
532532
*
533533
* To override twentyten_widgets_init() in a child theme, remove the action hook and add your own
534534
* function tied to the init hook.
@@ -697,7 +697,7 @@ function twentyten_posted_in() {
697697
endif;
698698

699699
/**
700-
* Retrieve the IDs for images in a gallery.
700+
* Retrieves the IDs for images in a gallery.
701701
*
702702
* @uses get_post_galleries() First, if available. Falls back to shortcode parsing,
703703
* then as last option uses a get_posts() call.
@@ -760,7 +760,7 @@ function twentyten_widget_tag_cloud_args( $args ) {
760760
add_filter( 'widget_tag_cloud_args', 'twentyten_widget_tag_cloud_args' );
761761

762762
/**
763-
* Enqueue scripts and styles for front end.
763+
* Enqueues scripts and styles for front end.
764764
*
765765
* @since Twenty Ten 2.6
766766
*/
@@ -771,7 +771,7 @@ function twentyten_scripts_styles() {
771771
add_action( 'wp_enqueue_scripts', 'twentyten_scripts_styles' );
772772

773773
/**
774-
* Enqueue styles for the block-based editor.
774+
* Enqueues styles for the block-based editor.
775775
*
776776
* @since Twenty Ten 2.6
777777
*/
@@ -782,7 +782,7 @@ function twentyten_block_editor_styles() {
782782
add_action( 'enqueue_block_editor_assets', 'twentyten_block_editor_styles' );
783783

784784
/**
785-
* Register block patterns and pattern categories.
785+
* Registers block patterns and pattern categories.
786786
*
787787
* @since Twenty Ten 4.3
788788
*/

0 commit comments

Comments
 (0)