Make WordPress Core

Ticket #60021: 60021.21.patch

File 60021.21.patch, 2.7 KB (added by viralsampat, 2 years ago)

I have checked above mentioned issue and founds few files. Here, I have added its patch.

  • src/wp-includes/blocks/site-logo.php

    diff --git src/wp-includes/blocks/site-logo.php src/wp-includes/blocks/site-logo.php
    index f1819fcaac..29a10a26d7 100644
    add_filter( 'pre_set_theme_mod_custom_logo', '_sync_custom_logo_to_site_logo' );  
    145145 *
    146146 * @param array $old_value Previous theme mod settings.
    147147 * @param array $value     Updated theme mod settings.
     148 *
     149 * @global $_ignore_site_logo_changes
    148150 */
    149151function _delete_site_logo_on_remove_custom_logo( $old_value, $value ) {
    150152        global $_ignore_site_logo_changes;
    function _delete_site_logo_on_remove_custom_logo( $old_value, $value ) {  
    161163
    162164/**
    163165 * Deletes the site logo when all theme mods are being removed.
     166 * @global $_ignore_site_logo_changes
    164167 */
    165168function _delete_site_logo_on_remove_theme_mods() {
    166169        global $_ignore_site_logo_changes;
    add_action( 'setup_theme', '_delete_site_logo_on_remove_custom_logo_on_setup_the  
    189192
    190193/**
    191194 * Removes the custom_logo theme-mod when the site_logo option gets deleted.
     195 * @global $_ignore_site_logo_changes
    192196 */
    193197function _delete_custom_logo_on_remove_site_logo() {
    194198        global $_ignore_site_logo_changes;
  • src/wp-includes/blocks/template-part.php

    diff --git src/wp-includes/blocks/template-part.php src/wp-includes/blocks/template-part.php
    index 8c01c5a4bc..a46891890f 100644
     
    99 * Renders the `core/template-part` block on the server.
    1010 *
    1111 * @param array $attributes The block attributes.
     12 * @global WP_Embed $wp_embed
    1213 *
    1314 * @return string The render.
    1415 */
  • src/wp-includes/blocks/widget-group.php

    diff --git src/wp-includes/blocks/widget-group.php src/wp-includes/blocks/widget-group.php
    index 8c8584b296..13d881d66c 100644
     
    1111 * @param array    $attributes The block attributes.
    1212 * @param string   $content The block content.
    1313 * @param WP_Block $block The block.
     14 * @global array $wp_registered_sidebars
     15 * @global array $_sidebar_being_rendered
    1416 *
    1517 * @return string Rendered block.
    1618 */
    add_action( 'init', 'register_block_core_widget_group' );  
    6062 * render_block_core_widget_group().
    6163 *
    6264 * @param int|string $index       Index, name, or ID of the dynamic sidebar.
     65 * @global array $_sidebar_being_rendered
    6366 */
    6467function note_sidebar_being_rendered( $index ) {
    6568        global $_sidebar_being_rendered;
    add_action( 'dynamic_sidebar_before', 'note_sidebar_being_rendered' );  
    7073/**
    7174 * Clear whatever we set in note_sidebar_being_rendered() after WordPress
    7275 * finishes rendering a sidebar.
     76 * @global array $_sidebar_being_rendered
    7377 */
    7478function discard_sidebar_being_rendered() {
    7579        global $_sidebar_being_rendered;