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
This commit is contained in:
audrasjb 2023-03-07 08:30:17 +00:00
parent 14801a97a5
commit dac1d3fb8d
5 changed files with 13 additions and 1 deletions

View File

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

View File

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

View File

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

View File

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

View File

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