Skip to content

Commit 6cb276e

Browse files
Twenty Twelve: 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@60508 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e7e55bc commit 6cb276e

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,12 @@ function twentytwelve_setup() {
135135
add_action( 'after_setup_theme', 'twentytwelve_setup' );
136136

137137
/**
138-
* Add support for a custom header image.
138+
* Adds support for a custom header image.
139139
*/
140140
require get_template_directory() . '/inc/custom-header.php';
141141

142142
/**
143-
* Register block patterns and pattern categories.
143+
* Registers block patterns and pattern categories.
144144
*
145145
* @since Twenty Twelve 4.4
146146
*/
@@ -178,7 +178,7 @@ function twentytwelve_get_font_url() {
178178
endif;
179179

180180
/**
181-
* Enqueue scripts and styles for front end.
181+
* Enqueues scripts and styles for front end.
182182
*
183183
* @since Twenty Twelve 1.0
184184
*/
@@ -224,7 +224,7 @@ function twentytwelve_scripts_styles() {
224224
add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' );
225225

226226
/**
227-
* Enqueue styles for the block-based editor.
227+
* Enqueues styles for the block-based editor.
228228
*
229229
* @since Twenty Twelve 2.6
230230
*/
@@ -238,7 +238,7 @@ function twentytwelve_block_editor_styles() {
238238
add_action( 'enqueue_block_editor_assets', 'twentytwelve_block_editor_styles' );
239239

240240
/**
241-
* Add preconnect for Google Fonts.
241+
* Adds preconnect for Google Fonts.
242242
*
243243
* @since Twenty Twelve 2.2
244244
* @deprecated Twenty Twelve 3.9 Disabled filter because, by default, fonts are self-hosted.
@@ -264,7 +264,7 @@ function twentytwelve_resource_hints( $urls, $relation_type ) {
264264
// add_filter( 'wp_resource_hints', 'twentytwelve_resource_hints', 10, 2 );
265265

266266
/**
267-
* Filter TinyMCE CSS path to include hosted fonts.
267+
* Filters TinyMCE CSS path to include hosted fonts.
268268
*
269269
* Adds additional stylesheets to the TinyMCE editor if needed.
270270
*
@@ -293,7 +293,7 @@ function twentytwelve_mce_css( $mce_css ) {
293293
add_filter( 'mce_css', 'twentytwelve_mce_css' );
294294

295295
/**
296-
* Filter the page title.
296+
* Filters the page title.
297297
*
298298
* Creates a nicely formatted and more specific title element text
299299
* for output in head of document, based on current view.
@@ -331,7 +331,7 @@ function twentytwelve_wp_title( $title, $sep ) {
331331
add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 );
332332

333333
/**
334-
* Filter the page menu arguments.
334+
* Filters the page menu arguments.
335335
*
336336
* Makes our wp_nav_menu() fallback -- wp_page_menu() -- show a home link.
337337
*
@@ -346,7 +346,7 @@ function twentytwelve_page_menu_args( $args ) {
346346
add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' );
347347

348348
/**
349-
* Register sidebars.
349+
* Registers sidebars.
350350
*
351351
* Registers our main widget area and the front page widget areas.
352352
*
@@ -516,7 +516,7 @@ function twentytwelve_comment( $comment, $args, $depth ) {
516516

517517
if ( ! function_exists( 'twentytwelve_entry_meta' ) ) :
518518
/**
519-
* Set up post entry meta.
519+
* Sets up post entry meta.
520520
*
521521
* Prints HTML with meta information for current post: categories, tags, permalink, author, and date.
522522
*
@@ -639,9 +639,9 @@ function twentytwelve_content_width() {
639639
add_action( 'template_redirect', 'twentytwelve_content_width' );
640640

641641
/**
642-
* Register postMessage support.
642+
* Registers postMessage support.
643643
*
644-
* Add postMessage support for site title and description for the Customizer.
644+
* Adds postMessage support for site title and description for the Customizer.
645645
*
646646
* @since Twenty Twelve 1.0
647647
*
@@ -700,7 +700,7 @@ function twentytwelve_customize_partial_blogdescription() {
700700
}
701701

702702
/**
703-
* Enqueue JavaScript postMessage handlers for the Customizer.
703+
* Enqueues JavaScript postMessage handlers for the Customizer.
704704
*
705705
* Binds JS handlers to make the Customizer preview reload changes asynchronously.
706706
*

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Implement an optional custom header for Twenty Twelve
3+
* Implements an optional custom header for Twenty Twelve
44
*
55
* See 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 twentytwelve_header_style() to style front end.

0 commit comments

Comments
 (0)