Skip to content

Commit c734f91

Browse files
committed
Twenty Seventeen: Various docblock fixes.
Props sabernhardt, audrasjb. Fixes #58695. See #57840. git-svn-id: https://develop.svn.wordpress.org/trunk@56121 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 1d773d4 commit c734f91

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

src/wp-content/themes/twentyseventeen/inc/template-functions.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Additional features to allow styling of the templates
3+
* Additional features to allow styling of the templates.
44
*
55
* @package WordPress
66
* @subpackage Twenty_Seventeen
@@ -67,9 +67,11 @@ function twentyseventeen_body_classes( $classes ) {
6767
add_filter( 'body_class', 'twentyseventeen_body_classes' );
6868

6969
/**
70-
* Count our number of active panels.
70+
* Counts the number of our active panels.
7171
*
72-
* Primarily used to see if we have any panels active, duh.
72+
* Primarily used to see if we have any panels active.
73+
*
74+
* @return int The number of active panels.
7375
*/
7476
function twentyseventeen_panel_count() {
7577

@@ -95,7 +97,9 @@ function twentyseventeen_panel_count() {
9597
}
9698

9799
/**
98-
* Checks to see if we're on the front page or not.
100+
* Checks to see if we are on the front page or not.
101+
*
102+
* @return bool Whether we are on the front page or not.
99103
*/
100104
function twentyseventeen_is_frontpage() {
101105
return ( is_front_page() && ! is_home() );

src/wp-content/themes/twentyseventeen/inc/template-tags.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Custom template tags for this theme
3+
* Custom template tags for this theme.
44
*
55
* Eventually, some of the functionality here could be replaced by core features.
66
*
@@ -70,7 +70,7 @@ function twentyseventeen_entry_footer() {
7070
// Get Tags for posts.
7171
$tags_list = get_the_tag_list( '', $separate_meta );
7272

73-
// We don't want to output .entry-footer if it will be empty, so make sure its not.
73+
// We don't want to output .entry-footer if it will be empty, so make sure it is not.
7474
if ( ( ( twentyseventeen_categorized_blog() && $categories_list ) || $tags_list ) || get_edit_post_link() ) {
7575

7676
echo '<footer class="entry-footer">';
@@ -112,7 +112,7 @@ function twentyseventeen_entry_footer() {
112112
/**
113113
* Returns an accessibility-friendly link to edit a post or page.
114114
*
115-
* This also gives us a little context about what exactly we're editing
115+
* This also gives a little context about what exactly we're editing
116116
* (post or page?) so that users understand a bit more where they are in terms
117117
* of the template hierarchy and their content. Helpful when/if the single-page
118118
* layout with multiple posts/pages shown gets confusing.
@@ -131,13 +131,13 @@ function twentyseventeen_edit_link() {
131131
endif;
132132

133133
/**
134-
* Display a front page section.
134+
* Displays a front page section.
135135
*
136136
* @global int|string $twentyseventeencounter Front page section counter.
137137
* @global WP_Post $post Global post object.
138138
*
139139
* @param WP_Customize_Partial $partial Partial associated with a selective refresh request.
140-
* @param int $id Front page section to display.
140+
* @param int $id Front page section to display.
141141
*/
142142
function twentyseventeen_front_page_section( $partial = null, $id = 0 ) {
143143
if ( is_a( $partial, 'WP_Customize_Partial' ) ) {
@@ -205,7 +205,7 @@ function twentyseventeen_categorized_blog() {
205205

206206

207207
/**
208-
* Flush out the transients used in twentyseventeen_categorized_blog.
208+
* Flushes out the transients used in twentyseventeen_categorized_blog.
209209
*/
210210
function twentyseventeen_category_transient_flusher() {
211211
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
@@ -219,15 +219,15 @@ function twentyseventeen_category_transient_flusher() {
219219

220220
if ( ! function_exists( 'wp_body_open' ) ) :
221221
/**
222-
* Fire the wp_body_open action.
222+
* Fires the wp_body_open action.
223223
*
224224
* Added for backward compatibility to support pre-5.2.0 WordPress versions.
225225
*
226226
* @since Twenty Seventeen 2.2
227227
*/
228228
function wp_body_open() {
229229
/**
230-
* Triggered after the opening <body> tag.
230+
* Fires after the opening <body> tag.
231231
*
232232
* @since Twenty Seventeen 2.2
233233
*/

0 commit comments

Comments
 (0)