Skip to content

Commit 23eae54

Browse files
committed
[#63692] General verb refactoring.
1 parent 518ef24 commit 23eae54

File tree

97 files changed

+351
-351
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+351
-351
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* @since Twenty Eleven 1.0
4141
*/
4242

43-
// Set the content width based on the theme's design and stylesheet.
43+
// Sets the content width based on the theme's design and stylesheet.
4444
if ( ! isset( $content_width ) ) {
4545
$content_width = 584;
4646
}
@@ -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
@@ -231,7 +231,7 @@ function twentyeleven_setup() {
231231
set_post_thumbnail_size( $custom_header_support['width'], $custom_header_support['height'], true );
232232

233233
/*
234-
* Add Twenty Eleven's custom image sizes.
234+
* Adds Twenty Eleven's custom image sizes.
235235
* Used for large feature (header) images.
236236
*/
237237
add_image_size( 'large-feature', $custom_header_support['width'], $custom_header_support['height'], true );
@@ -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
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
if ( $recent->have_posts() ) :
209209
$recent->the_post();
210210

211-
// Set $more to 0 in order to only get the first part of the post.
211+
// Sets $more to 0 in order to only get the first part of the post.
212212
global $more;
213213
$more = 0;
214214

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

Lines changed: 13 additions & 13 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
*
@@ -26,7 +26,7 @@
2626
*/
2727

2828
/**
29-
* Set the content width based on the theme's design and stylesheet.
29+
* Sets the content width based on the theme's design and stylesheet.
3030
*
3131
* @since Twenty Fifteen 1.0
3232
*/
@@ -97,7 +97,7 @@ function twentyfifteen_setup() {
9797
);
9898

9999
/*
100-
* Switch default core markup for search form, comment form, and comments
100+
* Switches default core markup for search form, comment form, and comments
101101
* to output valid HTML5.
102102
*/
103103
add_theme_support(
@@ -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
*
@@ -636,7 +636,7 @@ function twentyfifteen_author_bio_template( $template ) {
636636

637637

638638
/**
639-
* Implement the Custom Header feature.
639+
* Implements the Custom Header feature.
640640
*
641641
* @since Twenty Fifteen 1.0
642642
*/
@@ -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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.

src/wp-content/themes/twentyfifteen/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/twentyfifteen/inc/custom-header.php

Lines changed: 1 addition & 1 deletion
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
*/

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

Lines changed: 3 additions & 3 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
*
@@ -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
*

0 commit comments

Comments
 (0)