Skip to content

Commit 9e8e6f9

Browse files
Twenty Thirteen: 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@60515 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 59d8205 commit 9e8e6f9

File tree

4 files changed

+32
-35
lines changed

4 files changed

+32
-35
lines changed

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

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
}
4747

4848
/**
49-
* Register block patterns and pattern categories.
49+
* Registers block patterns and pattern categories.
5050
*
5151
* @since Twenty Thirteen 4.3
5252
*/
@@ -262,7 +262,7 @@ function twentythirteen_setup() {
262262

263263
if ( ! function_exists( 'twentythirteen_fonts_url' ) ) :
264264
/**
265-
* Return the font stylesheet URL, if available.
265+
* Returns the font stylesheet URL, if available.
266266
*
267267
* The use of Source Sans Pro and Bitter by default is localized. For languages
268268
* that use characters not supported by the font, the font can be disabled.
@@ -306,7 +306,7 @@ function twentythirteen_fonts_url() {
306306
endif;
307307

308308
/**
309-
* Enqueue scripts and styles for the front end.
309+
* Enqueues scripts and styles for the front end.
310310
*
311311
* @since Twenty Thirteen 1.0
312312
*/
@@ -356,7 +356,7 @@ function twentythirteen_scripts_styles() {
356356
add_action( 'wp_enqueue_scripts', 'twentythirteen_scripts_styles' );
357357

358358
/**
359-
* Add preconnect for Google Fonts.
359+
* Adds preconnect for Google Fonts.
360360
*
361361
* @since Twenty Thirteen 2.1
362362
* @deprecated Twenty Thirteen 3.8 Disabled filter because, by default, fonts are self-hosted.
@@ -382,7 +382,7 @@ function twentythirteen_resource_hints( $urls, $relation_type ) {
382382
// add_filter( 'wp_resource_hints', 'twentythirteen_resource_hints', 10, 2 );
383383

384384
/**
385-
* Enqueue styles for the block-based editor.
385+
* Enqueues styles for the block-based editor.
386386
*
387387
* @since Twenty Thirteen 2.5
388388
*/
@@ -396,7 +396,7 @@ function twentythirteen_block_editor_styles() {
396396
add_action( 'enqueue_block_editor_assets', 'twentythirteen_block_editor_styles' );
397397

398398
/**
399-
* Filter the page title.
399+
* Filters the page title.
400400
*
401401
* Creates a nicely formatted and more specific title element text for output
402402
* in head of document, based on current view.
@@ -437,7 +437,7 @@ function twentythirteen_wp_title( $title, $sep ) {
437437
add_filter( 'wp_title', 'twentythirteen_wp_title', 10, 2 );
438438

439439
/**
440-
* Register two widget areas.
440+
* Registers two widget areas.
441441
*
442442
* @since Twenty Thirteen 1.0
443443
*/
@@ -484,7 +484,7 @@ function wp_get_list_item_separator() {
484484

485485
if ( ! function_exists( 'twentythirteen_paging_nav' ) ) :
486486
/**
487-
* Display navigation to next/previous set of posts when applicable.
487+
* Displays navigation to next/previous set of posts when applicable.
488488
*
489489
* @since Twenty Thirteen 1.0
490490
*/
@@ -521,7 +521,7 @@ function twentythirteen_paging_nav() {
521521

522522
if ( ! function_exists( 'twentythirteen_post_nav' ) ) :
523523
/**
524-
* Display navigation to next/previous post when applicable.
524+
* Displays navigation to next/previous post when applicable.
525525
*
526526
* @since Twenty Thirteen 1.0
527527
*
@@ -558,7 +558,7 @@ function twentythirteen_post_nav() {
558558

559559
if ( ! function_exists( 'twentythirteen_entry_meta' ) ) :
560560
/**
561-
* Print HTML with meta information for current post: categories, tags, permalink, author, and date.
561+
* Prints HTML with meta information for current post: categories, tags, permalink, author, and date.
562562
*
563563
* Create your own twentythirteen_entry_meta() to override in a child theme.
564564
*
@@ -598,7 +598,7 @@ function twentythirteen_entry_meta() {
598598

599599
if ( ! function_exists( 'twentythirteen_entry_date' ) ) :
600600
/**
601-
* Print HTML with date information for current post.
601+
* Prints HTML with date information for current post.
602602
*
603603
* Create your own twentythirteen_entry_date() to override in a child theme.
604604
*
@@ -634,7 +634,7 @@ function twentythirteen_entry_date( $display = true ) {
634634

635635
if ( ! function_exists( 'twentythirteen_the_attached_image' ) ) :
636636
/**
637-
* Print the attached image with a link to the next attached image.
637+
* Prints the attached image with a link to the next attached image.
638638
*
639639
* @since Twenty Thirteen 1.0
640640
*/
@@ -700,7 +700,7 @@ function twentythirteen_the_attached_image() {
700700
endif;
701701

702702
/**
703-
* Return the post URL.
703+
* Returns the post URL.
704704
*
705705
* @uses get_url_in_content() to get the URL in the post meta (if it exists) or
706706
* the first link found in the post content.
@@ -741,7 +741,7 @@ function twentythirteen_excerpt_more( $more ) {
741741
endif;
742742

743743
/**
744-
* Extend the default WordPress body classes.
744+
* Extends the default WordPress body classes.
745745
*
746746
* Adds body classes to denote:
747747
* 1. Single or multiple authors.
@@ -771,7 +771,7 @@ function twentythirteen_body_class( $classes ) {
771771
add_filter( 'body_class', 'twentythirteen_body_class' );
772772

773773
/**
774-
* Adjust content_width value for video post formats and attachment templates.
774+
* Adjusts content_width value for video post formats and attachment templates.
775775
*
776776
* @since Twenty Thirteen 1.0
777777
*
@@ -789,7 +789,7 @@ function twentythirteen_content_width() {
789789
add_action( 'template_redirect', 'twentythirteen_content_width' );
790790

791791
/**
792-
* Add postMessage support for site title and description for the Customizer.
792+
* Adds postMessage support for site title and description for the Customizer.
793793
*
794794
* @since Twenty Thirteen 1.0
795795
*
@@ -822,7 +822,7 @@ function twentythirteen_customize_register( $wp_customize ) {
822822
add_action( 'customize_register', 'twentythirteen_customize_register' );
823823

824824
/**
825-
* Render the site title for the selective refresh partial.
825+
* Renders the site title for the selective refresh partial.
826826
*
827827
* @since Twenty Thirteen 1.9
828828
*
@@ -835,7 +835,7 @@ function twentythirteen_customize_partial_blogname() {
835835
}
836836

837837
/**
838-
* Render the site tagline for the selective refresh partial.
838+
* Renders the site tagline for the selective refresh partial.
839839
*
840840
* @since Twenty Thirteen 1.9
841841
*
@@ -848,7 +848,7 @@ function twentythirteen_customize_partial_blogdescription() {
848848
}
849849

850850
/**
851-
* Enqueue JavaScript postMessage handlers for the Customizer.
851+
* Enqueues JavaScript postMessage handlers for the Customizer.
852852
*
853853
* Binds JavaScript handlers to make the Customizer preview
854854
* reload changes asynchronously.
@@ -903,7 +903,7 @@ function twentythirteen_author_bio_template( $template ) {
903903

904904
if ( ! function_exists( 'wp_body_open' ) ) :
905905
/**
906-
* Fire the wp_body_open action.
906+
* Fires the wp_body_open action.
907907
*
908908
* Added for backward compatibility to support pre-5.2.0 WordPress versions.
909909
*
@@ -920,16 +920,13 @@ function wp_body_open() {
920920
endif;
921921

922922
/**
923-
* Register Custom Block Styles
923+
* Registers Custom Block Styles.
924924
*
925925
* @since Twenty Thirteen 3.4
926926
*/
927927
if ( function_exists( 'register_block_style' ) ) {
928928
function twentythirteen_register_block_styles() {
929929

930-
/**
931-
* Register block style
932-
*/
933930
register_block_style(
934931
'core/button',
935932
array(

src/wp-content/themes/twentythirteen/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 Thirteen on old versions of WordPress.
15+
* Prevents switching to Twenty Thirteen on old versions of WordPress.
1616
*
1717
* Switches to the default theme.
1818
*
@@ -26,7 +26,7 @@ function twentythirteen_switch_theme() {
2626
add_action( 'after_switch_theme', 'twentythirteen_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 Thirteen on WordPress versions prior to 3.6.
@@ -45,7 +45,7 @@ function twentythirteen_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 Thirteen 1.0
5151
*/
@@ -65,7 +65,7 @@ function twentythirteen_customize() {
6565
add_action( 'load-customize.php', 'twentythirteen_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 Thirteen 1.0
7171
*/

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Implement a custom header for Twenty Thirteen
3+
* Implements a custom header for Twenty Thirteen
44
*
55
* @link https://codex.wordpress.org/Custom_Headers
66
*
@@ -10,7 +10,7 @@
1010
*/
1111

1212
/**
13-
* Set up the WordPress core custom header arguments and settings.
13+
* Sets up the WordPress core custom header arguments and settings.
1414
*
1515
* @uses add_theme_support() to register support for 3.4 and up.
1616
* @uses twentythirteen_header_style() to style front end.
@@ -65,7 +65,7 @@ function twentythirteen_custom_header_setup() {
6565
add_action( 'after_setup_theme', 'twentythirteen_custom_header_setup', 11 );
6666

6767
/**
68-
* Load our special font CSS files.
68+
* Loads our special font CSS files.
6969
*
7070
* @since Twenty Thirteen 1.0
7171
*/
@@ -79,7 +79,7 @@ function twentythirteen_custom_header_fonts() {
7979
add_action( 'admin_print_styles-appearance_page_custom-header', 'twentythirteen_custom_header_fonts' );
8080

8181
/**
82-
* Style the header text displayed on the blog.
82+
* Styles the header text displayed on the blog.
8383
*
8484
* get_header_textcolor() options: Hide text (returns 'blank'), or any hex value.
8585
*
@@ -147,7 +147,7 @@ function twentythirteen_header_style() {
147147
}
148148

149149
/**
150-
* Style the header image displayed on the Appearance > Header admin panel.
150+
* Styles the header image displayed on the Appearance > Header admin panel.
151151
*
152152
* @since Twenty Thirteen 1.0
153153
*/
@@ -212,7 +212,7 @@ function twentythirteen_admin_header_style() {
212212
}
213213

214214
/**
215-
* Output markup to be displayed on the Appearance > Header admin panel.
215+
* Outputs markup to be displayed on the Appearance > Header admin panel.
216216
*
217217
* This callback overrides the default markup displayed there.
218218
*

src/wp-content/themes/twentythirteen/js/functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
} )();
7676

7777
/**
78-
* Add or remove ARIA attributes.
78+
* Adds or removes ARIA attributes.
7979
*
8080
* Uses jQuery's width() function to determine the size of the window and add
8181
* the default ARIA attributes for the menu toggle if it's visible.

0 commit comments

Comments
 (0)