From c734f91a69ae31f899abbcd87b4256d44d3ce8fb Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Sat, 1 Jul 2023 17:02:18 +0000 Subject: [PATCH] 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 --- .../twentyseventeen/inc/template-functions.php | 12 ++++++++---- .../themes/twentyseventeen/inc/template-tags.php | 16 ++++++++-------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/wp-content/themes/twentyseventeen/inc/template-functions.php b/src/wp-content/themes/twentyseventeen/inc/template-functions.php index 8ccc393b07..2c2e9504cc 100644 --- a/src/wp-content/themes/twentyseventeen/inc/template-functions.php +++ b/src/wp-content/themes/twentyseventeen/inc/template-functions.php @@ -1,6 +1,6 @@ '; @@ -112,7 +112,7 @@ if ( ! function_exists( 'twentyseventeen_edit_link' ) ) : /** * Returns an accessibility-friendly link to edit a post or page. * - * This also gives us a little context about what exactly we're editing + * This also gives a little context about what exactly we're editing * (post or page?) so that users understand a bit more where they are in terms * of the template hierarchy and their content. Helpful when/if the single-page * layout with multiple posts/pages shown gets confusing. @@ -131,13 +131,13 @@ if ( ! function_exists( 'twentyseventeen_edit_link' ) ) : endif; /** - * Display a front page section. + * Displays a front page section. * * @global int|string $twentyseventeencounter Front page section counter. * @global WP_Post $post Global post object. * * @param WP_Customize_Partial $partial Partial associated with a selective refresh request. - * @param int $id Front page section to display. + * @param int $id Front page section to display. */ function twentyseventeen_front_page_section( $partial = null, $id = 0 ) { if ( is_a( $partial, 'WP_Customize_Partial' ) ) { @@ -205,7 +205,7 @@ function twentyseventeen_categorized_blog() { /** - * Flush out the transients used in twentyseventeen_categorized_blog. + * Flushes out the transients used in twentyseventeen_categorized_blog. */ function twentyseventeen_category_transient_flusher() { if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { @@ -219,7 +219,7 @@ add_action( 'save_post', 'twentyseventeen_category_transient_flusher' ); if ( ! function_exists( 'wp_body_open' ) ) : /** - * Fire the wp_body_open action. + * Fires the wp_body_open action. * * Added for backward compatibility to support pre-5.2.0 WordPress versions. * @@ -227,7 +227,7 @@ if ( ! function_exists( 'wp_body_open' ) ) : */ function wp_body_open() { /** - * Triggered after the opening tag. + * Fires after the opening tag. * * @since Twenty Seventeen 2.2 */