diff --git a/src/wp-content/themes/twentyeleven/content-featured.php b/src/wp-content/themes/twentyeleven/content-featured.php index b49f680454902..8ee0401fe6898 100644 --- a/src/wp-content/themes/twentyeleven/content-featured.php +++ b/src/wp-content/themes/twentyeleven/content-featured.php @@ -7,6 +7,9 @@ * @since Twenty Eleven 1.0 */ +/** + * @global string $feature_class Classes for post container of featured posts. + */ global $feature_class; ?>
> diff --git a/src/wp-content/themes/twentyeleven/functions.php b/src/wp-content/themes/twentyeleven/functions.php index 900c1f2cf23c0..6434507effd7a 100644 --- a/src/wp-content/themes/twentyeleven/functions.php +++ b/src/wp-content/themes/twentyeleven/functions.php @@ -70,6 +70,8 @@ * @uses set_post_thumbnail_size() To set a custom post thumbnail size. * * @since Twenty Eleven 1.0 + * + * @global string $wp_version The WordPress version string. */ function twentyeleven_setup() { @@ -636,6 +638,8 @@ function twentyeleven_widgets_init() { * * @since Twenty Eleven 1.0 * + * @global WP_Query $wp_query WordPress Query object. + * * @param string $html_id The HTML id attribute. */ function twentyeleven_content_nav( $html_id ) { @@ -753,6 +757,8 @@ function twentyeleven_footer_sidebar_class() { * * @since Twenty Eleven 1.0 * + * @global WP_Comment $comment Global comment object. + * * @param WP_Comment $comment The comment object. * @param array $args An array of comment arguments. @see get_comment_reply_link() * @param int $depth The depth of the comment. diff --git a/src/wp-content/themes/twentyeleven/header.php b/src/wp-content/themes/twentyeleven/header.php index c93d34d014182..cceae47cb4b68 100644 --- a/src/wp-content/themes/twentyeleven/header.php +++ b/src/wp-content/themes/twentyeleven/header.php @@ -8,6 +8,13 @@ * @subpackage Twenty_Eleven * @since Twenty Eleven 1.0 */ + +/** + * @global int $page WordPress paginated post page count. + * @global int $paged WordPress archive pagination page count. + */ +global $page, $paged; + ?> > @@ -16,8 +23,6 @@ <?php // Print the <title> tag based on what is being viewed. - global $page, $paged; - wp_title( '|', true, 'right' ); // Add the site name. diff --git a/src/wp-content/themes/twentyeleven/showcase.php b/src/wp-content/themes/twentyeleven/showcase.php index a46fed329cd69..138bd180af83a 100644 --- a/src/wp-content/themes/twentyeleven/showcase.php +++ b/src/wp-content/themes/twentyeleven/showcase.php @@ -208,7 +208,11 @@ if ( $recent->have_posts() ) : $recent->the_post(); - // Set $more to 0 in order to only get the first part of the post. + /* + * Set $more to 0 in order to only get the first part of the post. + * + * @global int $more + */ global $more; $more = 0; diff --git a/src/wp-content/themes/twentyfifteen/functions.php b/src/wp-content/themes/twentyfifteen/functions.php index 7ac78506bbef3..97cf97199ab89 100644 --- a/src/wp-content/themes/twentyfifteen/functions.php +++ b/src/wp-content/themes/twentyfifteen/functions.php @@ -36,6 +36,8 @@ /** * Twenty Fifteen only works in WordPress 4.1 or later. + * + * @global string $wp_version The WordPress version string. */ if ( version_compare( $GLOBALS['wp_version'], '4.1-alpha', '<' ) ) { require get_template_directory() . '/inc/back-compat.php'; @@ -50,6 +52,8 @@ * as indicating support for post thumbnails. * * @since Twenty Fifteen 1.0 + * + * @global string $wp_version The WordPress version string. */ function twentyfifteen_setup() { @@ -499,6 +503,8 @@ function twentyfifteen_block_editor_styles() { * @since Twenty Fifteen 1.7 * @deprecated Twenty Fifteen 3.4 Disabled filter because, by default, fonts are self-hosted. * + * @global string $wp_version The WordPress version string. + * * @param array $urls URLs to print for resource hints. * @param string $relation_type The relation type the URLs are printed. * @return array URLs to print for resource hints. diff --git a/src/wp-content/themes/twentyfifteen/inc/back-compat.php b/src/wp-content/themes/twentyfifteen/inc/back-compat.php index 6a628ae8df0c7..d66c1f6aec83f 100644 --- a/src/wp-content/themes/twentyfifteen/inc/back-compat.php +++ b/src/wp-content/themes/twentyfifteen/inc/back-compat.php @@ -32,6 +32,8 @@ function twentyfifteen_switch_theme() { * Twenty Fifteen on WordPress versions prior to 4.1. * * @since Twenty Fifteen 1.0 + * + * @global string $wp_version The WordPress version string. */ function twentyfifteen_upgrade_notice() { printf( @@ -48,6 +50,8 @@ function twentyfifteen_upgrade_notice() { * Prevents the Customizer from being loaded on WordPress versions prior to 4.1. * * @since Twenty Fifteen 1.0 + * + * @global string $wp_version The WordPress version string. */ function twentyfifteen_customize() { wp_die( @@ -68,6 +72,8 @@ function twentyfifteen_customize() { * Prevents the Theme Preview from being loaded on WordPress versions prior to 4.1. * * @since Twenty Fifteen 1.0 + * + * @global string $wp_version The WordPress version string. */ function twentyfifteen_preview() { if ( isset( $_GET['preview'] ) ) { diff --git a/src/wp-content/themes/twentyfourteen/functions.php b/src/wp-content/themes/twentyfourteen/functions.php index 5dcb04c6b6698..ef30b94a383f9 100644 --- a/src/wp-content/themes/twentyfourteen/functions.php +++ b/src/wp-content/themes/twentyfourteen/functions.php @@ -38,6 +38,8 @@ /** * Twenty Fourteen only works in WordPress 3.6 or later. + * + * @global string $wp_version The WordPress version string. */ if ( version_compare( $GLOBALS['wp_version'], '3.6', '<' ) ) { require get_template_directory() . '/inc/back-compat.php'; @@ -54,6 +56,8 @@ * as indicating support post thumbnails. * * @since Twenty Fourteen 1.0 + * + * @global string $wp_version The WordPress version string. */ function twentyfourteen_setup() { @@ -226,6 +230,8 @@ function twentyfourteen_setup() { * Adjusts content_width value for image attachment template. * * @since Twenty Fourteen 1.0 + * + * @global int $content_width Content width. */ function twentyfourteen_content_width() { if ( is_attachment() && wp_attachment_is_image() ) { @@ -416,6 +422,8 @@ function twentyfourteen_admin_fonts() { * @since Twenty Fourteen 1.9 * @deprecated Twenty Fourteen 3.6 Disabled filter because, by default, fonts are self-hosted. * + * @global string $wp_version The WordPress version string. + * * @param array $urls URLs to print for resource hints. * @param string $relation_type The relation type the URLs are printed. * @return array URLs to print for resource hints. @@ -523,6 +531,8 @@ function twentyfourteen_the_attached_image() { * Prints a list of all site contributors who published at least one post. * * @since Twenty Fourteen 1.0 + * + * @global string $wp_version The WordPress version string. */ function twentyfourteen_list_authors() { $args = array( @@ -595,6 +605,8 @@ function twentyfourteen_list_authors() { * * @since Twenty Fourteen 1.0 * + * @global string $pagenow The filename of the current screen. + * * @param array $classes A list of existing body class values. * @return array The filtered body class list. */ @@ -743,6 +755,8 @@ function twentyfourteen_register_block_patterns() { * * To overwrite in a plugin, define your own Featured_Content class on or * before the 'setup_theme' hook. + * + * @global string $pagenow The filename of the current screen. */ if ( ! class_exists( 'Featured_Content' ) && 'plugins.php' !== $GLOBALS['pagenow'] ) { require get_template_directory() . '/inc/featured-content.php'; diff --git a/src/wp-content/themes/twentyfourteen/inc/back-compat.php b/src/wp-content/themes/twentyfourteen/inc/back-compat.php index 7ed48c7dc9617..78a7f19b02d2b 100644 --- a/src/wp-content/themes/twentyfourteen/inc/back-compat.php +++ b/src/wp-content/themes/twentyfourteen/inc/back-compat.php @@ -32,6 +32,8 @@ function twentyfourteen_switch_theme() { * Twenty Fourteen on WordPress versions prior to 3.6. * * @since Twenty Fourteen 1.0 + * + * @global string $wp_version The WordPress version string. */ function twentyfourteen_upgrade_notice() { printf( @@ -48,6 +50,8 @@ function twentyfourteen_upgrade_notice() { * Prevents the Customizer from being loaded on WordPress versions prior to 3.6. * * @since Twenty Fourteen 1.0 + * + * @global string $wp_version The WordPress version string. */ function twentyfourteen_customize() { wp_die( @@ -68,6 +72,8 @@ function twentyfourteen_customize() { * Prevents the Theme Preview from being loaded on WordPress versions prior to 3.4. * * @since Twenty Fourteen 1.0 + * + * @global string $wp_version The WordPress version string. */ function twentyfourteen_preview() { if ( isset( $_GET['preview'] ) ) { diff --git a/src/wp-content/themes/twentyfourteen/inc/customizer.php b/src/wp-content/themes/twentyfourteen/inc/customizer.php index f7059776d528f..624d4e6207602 100644 --- a/src/wp-content/themes/twentyfourteen/inc/customizer.php +++ b/src/wp-content/themes/twentyfourteen/inc/customizer.php @@ -150,6 +150,8 @@ function twentyfourteen_customize_preview_js() { * Adds contextual help to the Themes and Post edit screens. * * @since Twenty Fourteen 1.0 + * + * @global string $typenow The post type of the current screen. */ function twentyfourteen_contextual_help() { if ( 'admin_head-edit.php' === current_filter() && 'post' !== $GLOBALS['typenow'] ) { diff --git a/src/wp-content/themes/twentyfourteen/inc/widgets.php b/src/wp-content/themes/twentyfourteen/inc/widgets.php index 7c4f237294b3a..8ffac4cd83057 100644 --- a/src/wp-content/themes/twentyfourteen/inc/widgets.php +++ b/src/wp-content/themes/twentyfourteen/inc/widgets.php @@ -66,6 +66,9 @@ public function enqueue_scripts() { * * @since Twenty Fourteen 1.0 * + * @global int $content_width Content width. + * @global int $more + * * @param array $args An array of standard parameters for widgets in this theme. * @param array $instance An array of settings for this widget instance. */ diff --git a/src/wp-content/themes/twentynineteen/functions.php b/src/wp-content/themes/twentynineteen/functions.php index c9645ee1cae1e..987c13c22f019 100644 --- a/src/wp-content/themes/twentynineteen/functions.php +++ b/src/wp-content/themes/twentynineteen/functions.php @@ -11,6 +11,8 @@ /** * Twenty Nineteen only works in WordPress 4.7 or later. + * + * @global string $wp_version The WordPress version string. */ if ( version_compare( $GLOBALS['wp_version'], '4.7', '<' ) ) { require get_template_directory() . '/inc/back-compat.php'; diff --git a/src/wp-content/themes/twentynineteen/inc/back-compat.php b/src/wp-content/themes/twentynineteen/inc/back-compat.php index a54cc5a9f050e..900f9c18a95da 100644 --- a/src/wp-content/themes/twentynineteen/inc/back-compat.php +++ b/src/wp-content/themes/twentynineteen/inc/back-compat.php @@ -33,7 +33,7 @@ function twentynineteen_switch_theme() { * * @since Twenty Nineteen 1.0.0 * - * @global string $wp_version WordPress version. + * @global string $wp_version The WordPress version string. */ function twentynineteen_upgrade_notice() { printf( @@ -51,7 +51,7 @@ function twentynineteen_upgrade_notice() { * * @since Twenty Nineteen 1.0.0 * - * @global string $wp_version WordPress version. + * @global string $wp_version The WordPress version string. */ function twentynineteen_customize() { wp_die( @@ -73,7 +73,7 @@ function twentynineteen_customize() { * * @since Twenty Nineteen 1.0.0 * - * @global string $wp_version WordPress version. + * @global string $wp_version The WordPress version string. */ function twentynineteen_preview() { if ( isset( $_GET['preview'] ) ) { diff --git a/src/wp-content/themes/twentyseventeen/functions.php b/src/wp-content/themes/twentyseventeen/functions.php index 30d95aaf93f83..e16e5dcbc2ca8 100644 --- a/src/wp-content/themes/twentyseventeen/functions.php +++ b/src/wp-content/themes/twentyseventeen/functions.php @@ -11,6 +11,8 @@ /** * Twenty Seventeen only works in WordPress 4.7 or later. + * + * @global string $wp_version The WordPress version string. */ if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '<' ) ) { require get_template_directory() . '/inc/back-compat.php'; @@ -23,6 +25,10 @@ * Note that this function is hooked into the after_setup_theme hook, which * runs before the init hook. The init hook is too late for some features, such * as indicating support for post thumbnails. + * + * @since Twenty Seventeen 1.0 + * + * @global int $content_width Content width. */ function twentyseventeen_setup() { @@ -248,7 +254,7 @@ function twentyseventeen_setup() { * * Priority 0 to make it available to lower priority callbacks. * - * @global int $content_width + * @global int $content_width Content width. */ function twentyseventeen_content_width() { diff --git a/src/wp-content/themes/twentyseventeen/inc/back-compat.php b/src/wp-content/themes/twentyseventeen/inc/back-compat.php index 05b6cdb0c4a9a..eef1ee7314534 100644 --- a/src/wp-content/themes/twentyseventeen/inc/back-compat.php +++ b/src/wp-content/themes/twentyseventeen/inc/back-compat.php @@ -33,7 +33,7 @@ function twentyseventeen_switch_theme() { * * @since Twenty Seventeen 1.0 * - * @global string $wp_version WordPress version. + * @global string $wp_version The WordPress version string. */ function twentyseventeen_upgrade_notice() { printf( @@ -51,7 +51,7 @@ function twentyseventeen_upgrade_notice() { * * @since Twenty Seventeen 1.0 * - * @global string $wp_version WordPress version. + * @global string $wp_version The WordPress version string. */ function twentyseventeen_customize() { wp_die( @@ -73,7 +73,7 @@ function twentyseventeen_customize() { * * @since Twenty Seventeen 1.0 * - * @global string $wp_version WordPress version. + * @global string $wp_version The WordPress version string. */ function twentyseventeen_preview() { if ( isset( $_GET['preview'] ) ) { diff --git a/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php b/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php index 923c11f6132a1..5c6959b262158 100644 --- a/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php +++ b/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php @@ -8,6 +8,9 @@ * @version 1.0 */ +/** + * @global int|string $twentyseventeencounter Front page section counter. + */ global $twentyseventeencounter; ?> diff --git a/src/wp-content/themes/twentysixteen/functions.php b/src/wp-content/themes/twentysixteen/functions.php index 26c84a7a347bc..efae1f549fea4 100644 --- a/src/wp-content/themes/twentysixteen/functions.php +++ b/src/wp-content/themes/twentysixteen/functions.php @@ -27,6 +27,8 @@ /** * Twenty Sixteen only works in WordPress 4.4 or later. + * + * @global string $wp_version The WordPress version string. */ if ( version_compare( $GLOBALS['wp_version'], '4.4-alpha', '<' ) ) { require get_template_directory() . '/inc/back-compat.php'; @@ -43,6 +45,8 @@ * Create your own twentysixteen_setup() function to override in a child theme. * * @since Twenty Sixteen 1.0 + * + * @global string $wp_version The WordPress version string. */ function twentysixteen_setup() { /* @@ -241,9 +245,9 @@ function twentysixteen_setup() { * * Priority 0 to make it available to lower priority callbacks. * - * @global int $content_width - * * @since Twenty Sixteen 1.0 + * + * @global int $content_width Content width. */ function twentysixteen_content_width() { /** diff --git a/src/wp-content/themes/twentysixteen/inc/back-compat.php b/src/wp-content/themes/twentysixteen/inc/back-compat.php index d7e18f2031060..9ecf21c9835c1 100644 --- a/src/wp-content/themes/twentysixteen/inc/back-compat.php +++ b/src/wp-content/themes/twentysixteen/inc/back-compat.php @@ -35,7 +35,7 @@ function twentysixteen_switch_theme() { * * @since Twenty Sixteen 1.0 * - * @global string $wp_version WordPress version. + * @global string $wp_version The WordPress version string. */ function twentysixteen_upgrade_notice() { printf( @@ -53,7 +53,7 @@ function twentysixteen_upgrade_notice() { * * @since Twenty Sixteen 1.0 * - * @global string $wp_version WordPress version. + * @global string $wp_version The WordPress version string. */ function twentysixteen_customize() { wp_die( @@ -75,7 +75,7 @@ function twentysixteen_customize() { * * @since Twenty Sixteen 1.0 * - * @global string $wp_version WordPress version. + * @global string $wp_version The WordPress version string. */ function twentysixteen_preview() { if ( isset( $_GET['preview'] ) ) { diff --git a/src/wp-content/themes/twentyten/functions.php b/src/wp-content/themes/twentyten/functions.php index baf9e13121e99..6d3e505670bc7 100644 --- a/src/wp-content/themes/twentyten/functions.php +++ b/src/wp-content/themes/twentyten/functions.php @@ -72,6 +72,8 @@ * @uses set_post_thumbnail_size() To set a custom post thumbnail size. * * @since Twenty Ten 1.0 + * + * @global string $wp_version The WordPress version string. */ function twentyten_setup() { @@ -436,7 +438,12 @@ function twentyten_custom_excerpt_more( $output ) { function twentyten_remove_gallery_css( $css ) { return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css ); } -// Backward compatibility with WordPress 3.0. + +/** + * Backward compatibility with WordPress 3.0. + * + * @global string $wp_version The WordPress version string. + */ if ( version_compare( $GLOBALS['wp_version'], '3.1', '<' ) ) { add_filter( 'gallery_style', 'twentyten_remove_gallery_css' ); } @@ -452,8 +459,10 @@ function twentyten_remove_gallery_css( $css ) { * * @since Twenty Ten 1.0 * + * @global WP_Comment $comment Global comment object. + * * @param WP_Comment $comment The comment object. - * @param array $args An array of arguments. @see get_comment_reply_link() + * @param array $args An array of comment arguments. @see get_comment_reply_link() * @param int $depth The depth of the comment. */ function twentyten_comment( $comment, $args, $depth ) { diff --git a/src/wp-content/themes/twentyten/header.php b/src/wp-content/themes/twentyten/header.php index 2e3d0e7054cbf..b3dd3d7379501 100644 --- a/src/wp-content/themes/twentyten/header.php +++ b/src/wp-content/themes/twentyten/header.php @@ -8,17 +8,20 @@ * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ + +/** + * @global int $page WordPress paginated post page count. + * @global int $paged WordPress archive pagination page count. + */ +global $page, $paged; + ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <title> <?php - /* - * Print the <title> tag based on what is being viewed. - */ - global $page, $paged; - + // Print the <title> tag based on what is being viewed. wp_title( '|', true, 'right' ); // Add the site name. diff --git a/src/wp-content/themes/twentythirteen/functions.php b/src/wp-content/themes/twentythirteen/functions.php index 7a4aa291aa315..59fdcd967495f 100644 --- a/src/wp-content/themes/twentythirteen/functions.php +++ b/src/wp-content/themes/twentythirteen/functions.php @@ -40,6 +40,8 @@ /** * Twenty Thirteen only works in WordPress 3.6 or later. + * + * @global string $wp_version The WordPress version string. */ if ( version_compare( $GLOBALS['wp_version'], '3.6-alpha', '<' ) ) { require get_template_directory() . '/inc/back-compat.php'; @@ -70,6 +72,8 @@ function twentythirteen_register_block_patterns() { * @uses set_post_thumbnail_size() To set a custom post thumbnail size. * * @since Twenty Thirteen 1.0 + * + * @global string $wp_version The WordPress version string. */ function twentythirteen_setup() { /* @@ -360,6 +364,8 @@ function twentythirteen_scripts_styles() { * @since Twenty Thirteen 2.1 * @deprecated Twenty Thirteen 3.8 Disabled filter because, by default, fonts are self-hosted. * + * @global string $wp_version The WordPress version string. + * * @param array $urls URLs to print for resource hints. * @param string $relation_type The relation type the URLs are printed. * @return array URLs to print for resource hints. @@ -488,6 +494,8 @@ function wp_get_list_item_separator() { * Displays navigation to next/previous set of posts when applicable. * * @since Twenty Thirteen 1.0 + * + * @global WP_Query $wp_query WordPress Query object. */ function twentythirteen_paging_nav() { global $wp_query; diff --git a/src/wp-content/themes/twentythirteen/inc/back-compat.php b/src/wp-content/themes/twentythirteen/inc/back-compat.php index e70658f77cdc1..20b59cf9596c0 100644 --- a/src/wp-content/themes/twentythirteen/inc/back-compat.php +++ b/src/wp-content/themes/twentythirteen/inc/back-compat.php @@ -32,6 +32,8 @@ function twentythirteen_switch_theme() { * Twenty Thirteen on WordPress versions prior to 3.6. * * @since Twenty Thirteen 1.0 + * + * @global string $wp_version The WordPress version string. */ function twentythirteen_upgrade_notice() { printf( @@ -48,6 +50,8 @@ function twentythirteen_upgrade_notice() { * Prevents the Customizer from being loaded on WordPress versions prior to 3.6. * * @since Twenty Thirteen 1.0 + * + * @global string $wp_version The WordPress version string. */ function twentythirteen_customize() { wp_die( @@ -68,6 +72,8 @@ function twentythirteen_customize() { * Prevents the Theme Preview from being loaded on WordPress versions prior to 3.4. * * @since Twenty Thirteen 1.0 + * + * @global string $wp_version The WordPress version string. */ function twentythirteen_preview() { if ( isset( $_GET['preview'] ) ) { diff --git a/src/wp-content/themes/twentytwelve/functions.php b/src/wp-content/themes/twentytwelve/functions.php index 575b2c1d900a2..da474532bf8f5 100644 --- a/src/wp-content/themes/twentytwelve/functions.php +++ b/src/wp-content/themes/twentytwelve/functions.php @@ -43,6 +43,8 @@ * @uses set_post_thumbnail_size() To set a custom post thumbnail size. * * @since Twenty Twelve 1.0 + * + * @global string $wp_version The WordPress version string. */ function twentytwelve_setup() { /* @@ -181,6 +183,8 @@ function twentytwelve_get_font_url() { * Enqueues scripts and styles for front end. * * @since Twenty Twelve 1.0 + * + * @global WP_Styles $wp_styles The WP_Styles object for printing styles. */ function twentytwelve_scripts_styles() { global $wp_styles; @@ -242,6 +246,8 @@ function twentytwelve_block_editor_styles() { * @since Twenty Twelve 2.2 * @deprecated Twenty Twelve 3.9 Disabled filter because, by default, fonts are self-hosted. * + * @global string $wp_version The WordPress version string. + * * @param array $urls URLs to print for resource hints. * @param string $relation_type The relation type the URLs are printed. * @return array URLs to print for resource hints. @@ -299,6 +305,9 @@ function twentytwelve_mce_css( $mce_css ) { * * @since Twenty Twelve 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 Filtered title. @@ -411,6 +420,8 @@ function wp_get_list_item_separator() { * Displays navigation to next/previous pages when applicable. * * @since Twenty Twelve 1.0 + * + * @global WP_Query $wp_query WordPress Query object. */ function twentytwelve_content_nav( $html_id ) { global $wp_query; @@ -451,7 +462,12 @@ function twentytwelve_content_nav( $html_id ) { * * @since Twenty Twelve 1.0 * - * @global WP_Post $post Global post object. + * @global WP_Comment $comment Global comment object. + * @global WP_Post $post Global post object. + * + * @param WP_Comment $comment The comment object. + * @param array $args An array of comment arguments. @see get_comment_reply_link() + * @param int $depth The depth of the comment. */ function twentytwelve_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; @@ -644,6 +660,8 @@ function twentytwelve_body_class( $classes ) { * templates, and when there are no active widgets in the sidebar. * * @since Twenty Twelve 1.0 + * + * @global int $content_width Content width. */ function twentytwelve_content_width() { if ( is_page_template( 'page-templates/full-width.php' ) || is_attachment() || ! is_active_sidebar( 'sidebar-1' ) ) { diff --git a/src/wp-content/themes/twentytwenty/functions.php b/src/wp-content/themes/twentytwenty/functions.php index f7cff6248beba..b92ff1a1bd2b7 100644 --- a/src/wp-content/themes/twentytwenty/functions.php +++ b/src/wp-content/themes/twentytwenty/functions.php @@ -32,6 +32,9 @@ * as indicating support for post thumbnails. * * @since Twenty Twenty 1.0 + * + * @global int $content_width Content width. + * @global string $wp_version The WordPress version string. */ function twentytwenty_theme_support() { @@ -461,6 +464,9 @@ function twentytwenty_block_editor_styles() { } } +/** + * @global string $wp_version The WordPress version string. + */ if ( is_admin() && version_compare( $GLOBALS['wp_version'], '6.3', '>=' ) ) { add_action( 'enqueue_block_assets', 'twentytwenty_block_editor_styles', 1, 1 ); } else { diff --git a/src/wp-content/themes/twentytwentyone/functions.php b/src/wp-content/themes/twentytwentyone/functions.php index 301aefca5cd2c..a57ce2c9e7554 100644 --- a/src/wp-content/themes/twentytwentyone/functions.php +++ b/src/wp-content/themes/twentytwentyone/functions.php @@ -9,7 +9,11 @@ * @since Twenty Twenty-One 1.0 */ -// This theme requires WordPress 5.3 or later. +/** + * This theme requires WordPress 5.3 or later. + * + * @global string $wp_version The WordPress version string. + */ if ( version_compare( $GLOBALS['wp_version'], '5.3', '<' ) ) { require get_template_directory() . '/inc/back-compat.php'; } @@ -24,6 +28,8 @@ * * @since Twenty Twenty-One 1.0 * + * @global bool $is_IE + * * @return void */ function twenty_twenty_one_setup() { @@ -126,7 +132,7 @@ function twenty_twenty_one_setup() { $editor_stylesheet_path = './assets/css/style-editor.css'; // Note, the is_IE global variable is defined by WordPress and is used - // to detect if the current browser is internet explorer. + // to detect if the current browser is Internet Explorer. global $is_IE; if ( $is_IE ) { $editor_stylesheet_path = './assets/css/ie-editor.css'; diff --git a/src/wp-content/themes/twentytwentyone/inc/back-compat.php b/src/wp-content/themes/twentytwentyone/inc/back-compat.php index 7e547e15026f8..33ad0a7d1518f 100644 --- a/src/wp-content/themes/twentytwentyone/inc/back-compat.php +++ b/src/wp-content/themes/twentytwentyone/inc/back-compat.php @@ -31,7 +31,7 @@ function twenty_twenty_one_switch_theme() { * * @since Twenty Twenty-One 1.0 * - * @global string $wp_version WordPress version. + * @global string $wp_version The WordPress version string. * * @return void */ @@ -50,7 +50,7 @@ function twenty_twenty_one_upgrade_notice() { * * @since Twenty Twenty-One 1.0 * - * @global string $wp_version WordPress version. + * @global string $wp_version The WordPress version string. * * @return void */ @@ -74,7 +74,7 @@ function twenty_twenty_one_customize() { * * @since Twenty Twenty-One 1.0 * - * @global string $wp_version WordPress version. + * @global string $wp_version The WordPress version string. * * @return void */