From dac1d3fb8d9468956bcaffb0b5cbd7b6579a14fa Mon Sep 17 00:00:00 2001 From: audrasjb Date: Tue, 7 Mar 2023 08:30:17 +0000 Subject: [PATCH] Bundled Themes: Improve various globals documentation, as per docblock standards. Props viralsampat, audrasjb, costdev. See #56792, #57069. Built from https://develop.svn.wordpress.org/trunk@55472 git-svn-id: http://core.svn.wordpress.org/trunk@55005 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyfourteen/functions.php | 2 ++ wp-content/themes/twentyseventeen/front-page.php | 2 ++ wp-content/themes/twentythirteen/functions.php | 5 +++++ wp-content/themes/twentytwenty/index.php | 3 +++ wp-includes/version.php | 2 +- 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentyfourteen/functions.php b/wp-content/themes/twentyfourteen/functions.php index 91c65384ae..6c15c8ae39 100644 --- a/wp-content/themes/twentyfourteen/functions.php +++ b/wp-content/themes/twentyfourteen/functions.php @@ -721,6 +721,8 @@ if ( ! class_exists( 'Featured_Content' ) && 'plugins.php' !== $GLOBALS['pagenow * * Enables installing Twenty Fourteen in WordPress versions before 4.0.0 when the * `is_customize_preview` function was introduced. + * + * @global WP_Customize_Manager $wp_customize Customizer object. */ if ( ! function_exists( 'is_customize_preview' ) ) : function is_customize_preview() { diff --git a/wp-content/themes/twentyseventeen/front-page.php b/wp-content/themes/twentyseventeen/front-page.php index ceeb10037c..bf490b7e40 100644 --- a/wp-content/themes/twentyseventeen/front-page.php +++ b/wp-content/themes/twentyseventeen/front-page.php @@ -38,6 +38,8 @@ get_header(); ?> * * @since Twenty Seventeen 1.0 * + * @global int|string $twentyseventeencounter Front page section counter. + * * @param int $num_sections Number of front page sections. */ $num_sections = apply_filters( 'twentyseventeen_front_page_sections', 4 ); diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php index 3aad05ed6d..1d456ad48b 100644 --- a/wp-content/themes/twentythirteen/functions.php +++ b/wp-content/themes/twentythirteen/functions.php @@ -383,6 +383,9 @@ add_action( 'enqueue_block_editor_assets', 'twentythirteen_block_editor_styles' * * @since Twenty Thirteen 1.0 * + * @global int $paged WordPress archive pagination page count. + * @global int $page WordPress paginated post page count. + * * @param string $title Default title text for current view. * @param string $sep Optional separator. * @return string The filtered title. @@ -751,6 +754,8 @@ add_filter( 'body_class', 'twentythirteen_body_class' ); * Adjust content_width value for video post formats and attachment templates. * * @since Twenty Thirteen 1.0 + * + * @global int $content_width Content width. */ function twentythirteen_content_width() { global $content_width; diff --git a/wp-content/themes/twentytwenty/index.php b/wp-content/themes/twentytwenty/index.php index 2efda3596f..0c73e812e3 100644 --- a/wp-content/themes/twentytwenty/index.php +++ b/wp-content/themes/twentytwenty/index.php @@ -25,6 +25,9 @@ get_header(); $archive_subtitle = ''; if ( is_search() ) { + /** + * @global WP_Query $wp_query WordPress Query object. + */ global $wp_query; $archive_title = sprintf( diff --git a/wp-includes/version.php b/wp-includes/version.php index 1d5326b67d..054c9ba90c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-beta4-55471'; +$wp_version = '6.2-beta4-55472'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.