Make WordPress Core

Ticket #57069: 57069.7.diff

File 57069.7.diff, 2.6 KB (added by costdev, 21 months ago)

Globals reordered to meet the established docblock format + type added for $wp_customize

  • src/wp-content/themes/twentyfourteen/functions.php

    diff --git a/src/wp-content/themes/twentyfourteen/functions.php b/src/wp-content/themes/twentyfourteen/functions.php
    index 91c65384ae..6c15c8ae39 100644
    a b if ( ! class_exists( 'Featured_Content' ) && 'plugins.php' !== $GLOBALS['pagenow 
    721721 *
    722722 * Enables installing Twenty Fourteen in WordPress versions before 4.0.0 when the
    723723 * `is_customize_preview` function was introduced.
     724 *
     725 * @global WP_Customize_Manager $wp_customize Customizer object.
    724726 */
    725727if ( ! function_exists( 'is_customize_preview' ) ) :
    726728        function is_customize_preview() {
  • src/wp-content/themes/twentyseventeen/front-page.php

    diff --git a/src/wp-content/themes/twentyseventeen/front-page.php b/src/wp-content/themes/twentyseventeen/front-page.php
    index ceeb10037c..bf490b7e40 100644
    a b get_header(); ?> 
    3838                         *
    3939                         * @since Twenty Seventeen 1.0
    4040                         *
     41                         * @global int|string $twentyseventeencounter Front page section counter.
     42                         *
    4143                         * @param int $num_sections Number of front page sections.
    4244                         */
    4345                        $num_sections = apply_filters( 'twentyseventeen_front_page_sections', 4 );
  • src/wp-content/themes/twentythirteen/functions.php

    diff --git a/src/wp-content/themes/twentythirteen/functions.php b/src/wp-content/themes/twentythirteen/functions.php
    index 3aad05ed6d..1d456ad48b 100644
    a b add_action( 'enqueue_block_editor_assets', 'twentythirteen_block_editor_styles' 
    383383 *
    384384 * @since Twenty Thirteen 1.0
    385385 *
     386 * @global int $paged WordPress archive pagination page count.
     387 * @global int $page  WordPress paginated post page count.
     388 *
    386389 * @param string $title Default title text for current view.
    387390 * @param string $sep   Optional separator.
    388391 * @return string The filtered title.
    add_filter( 'body_class', 'twentythirteen_body_class' ); 
    751754 * Adjust content_width value for video post formats and attachment templates.
    752755 *
    753756 * @since Twenty Thirteen 1.0
     757 *
     758 * @global int $content_width Content width.
    754759 */
    755760function twentythirteen_content_width() {
    756761        global $content_width;
  • src/wp-content/themes/twentytwenty/index.php

    diff --git a/src/wp-content/themes/twentytwenty/index.php b/src/wp-content/themes/twentytwenty/index.php
    index 2efda3596f..0c73e812e3 100644
    a b get_header(); 
    2525        $archive_subtitle = '';
    2626
    2727        if ( is_search() ) {
     28                /**
     29                 * @global WP_Query $wp_query WordPress Query object.
     30                 */
    2831                global $wp_query;
    2932
    3033                $archive_title = sprintf(