Make WordPress Core

Ticket #57069: 57069.6.diff

File 57069.6.diff, 2.7 KB (added by viralsampat, 2 years ago)

I have added patch and resolved this issue.

  • 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 100a7f88db..ea48d0ccfd 100644
    a b if ( ! class_exists( 'Featured_Content' ) && 'plugins.php' !== $GLOBALS['pagenow 
    711711 *
    712712 * Enables installing Twenty Fourteen in WordPress versions before 4.0.0 when the
    713713 * `is_customize_preview` function was introduced.
     714 * @global $wp_customize Customizer object.
    714715 */
    715716if ( ! function_exists( 'is_customize_preview' ) ) :
    716717        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..40ed98c7ea 100644
    a b get_header(); ?> 
    3939                         * @since Twenty Seventeen 1.0
    4040                         *
    4141                         * @param int $num_sections Number of front page sections.
     42                         *
     43                         * @global int|string $twentyseventeencounter Front page section counter.
    4244                         */
    4345                        $num_sections = apply_filters( 'twentyseventeen_front_page_sections', 4 );
    4446                        global $twentyseventeencounter;
  • 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 cd1d3e1f49..77e17cf28b 100644
    a b add_action( 'enqueue_block_editor_assets', 'twentythirteen_block_editor_styles' 
    379379 * @param string $title Default title text for current view.
    380380 * @param string $sep   Optional separator.
    381381 * @return string The filtered title.
     382 * @global int $paged WordPress archive pagination page count.
     383 * @global int $page  WordPress paginated post page count.
     384 *
    382385 */
    383386function twentythirteen_wp_title( $title, $sep ) {
    384387        global $paged, $page;
    add_filter( 'body_class', 'twentythirteen_body_class' ); 
    734737 * Adjust content_width value for video post formats and attachment templates.
    735738 *
    736739 * @since Twenty Thirteen 1.0
     740 * @global int $content_width Content width.
    737741 */
    738742function twentythirteen_content_width() {
    739743        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(