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
This commit is contained in:
audrasjb 2022-12-18 08:47:13 +00:00
parent 9c1d82dd17
commit f2553c0823
5 changed files with 11 additions and 1 deletions

View File

@ -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.
*/

View File

@ -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() {

View File

@ -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 ) {

View File

@ -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.
*/

View File

@ -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.