From f2553c0823b0f6ccadb761b52cea0ce03e022dd5 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Sun, 18 Dec 2022 08:47:13 +0000 Subject: [PATCH] Docs: Improve various globals documentation, as per docblock standards. Props upadalavipul, audrasjb. See #57069, #56792. Built from https://develop.svn.wordpress.org/trunk@55003 git-svn-id: http://core.svn.wordpress.org/trunk@54536 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyseventeen/inc/template-tags.php | 2 ++ wp-content/themes/twentythirteen/functions.php | 2 ++ wp-content/themes/twentytwelve/functions.php | 2 ++ wp-content/themes/twentytwenty/inc/template-tags.php | 4 ++++ wp-includes/version.php | 2 +- 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentyseventeen/inc/template-tags.php b/wp-content/themes/twentyseventeen/inc/template-tags.php index fcbdae1785..f7720a6804 100644 --- a/wp-content/themes/twentyseventeen/inc/template-tags.php +++ b/wp-content/themes/twentyseventeen/inc/template-tags.php @@ -125,6 +125,8 @@ endif; /** * Display a front page section. * + * @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. */ diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php index 927319814a..f74a40a914 100644 --- a/wp-content/themes/twentythirteen/functions.php +++ b/wp-content/themes/twentythirteen/functions.php @@ -488,6 +488,8 @@ if ( ! function_exists( 'twentythirteen_post_nav' ) ) : /** * Display navigation to next/previous post when applicable. * + * @global WP_Post $post Global post object. + * * @since Twenty Thirteen 1.0 */ function twentythirteen_post_nav() { diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php index 4ecca30d2a..879b63f95c 100644 --- a/wp-content/themes/twentytwelve/functions.php +++ b/wp-content/themes/twentytwelve/functions.php @@ -427,6 +427,8 @@ if ( ! function_exists( 'twentytwelve_comment' ) ) : * * Used as a callback by wp_list_comments() for displaying the comments. * + * @global WP_Post $post Global post object. + * * @since Twenty Twelve 1.0 */ function twentytwelve_comment( $comment, $args, $depth ) { diff --git a/wp-content/themes/twentytwenty/inc/template-tags.php b/wp-content/themes/twentytwenty/inc/template-tags.php index 858ecc1631..7a249581e6 100644 --- a/wp-content/themes/twentytwenty/inc/template-tags.php +++ b/wp-content/themes/twentytwenty/inc/template-tags.php @@ -241,6 +241,8 @@ add_filter( 'edit_post_link', 'twentytwenty_edit_post_link', 10, 3 ); * * @since Twenty Twenty 1.0 * + * @global WP_Post $post Global post object. + * * @param int $post_id The ID of the post. * @param string $location The location where the meta is shown. */ @@ -651,6 +653,8 @@ add_action( 'wp_head', 'twentytwenty_no_js_class' ); * * @since Twenty Twenty 1.0 * + * @global WP_Post $post Global post object. + * * @param array $classes Classes added to the body tag. * @return array Classes added to the body tag. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index efb6bc4217..d86c4ce535 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-55002'; +$wp_version = '6.2-alpha-55003'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.