Make WordPress Core

Ticket #60285: 60285.patch

File 60285.patch, 2.4 KB (added by shailu25, 4 months ago)

Patch Added

  • src/wp-includes/Text/Diff.php

    diff --git a/src/wp-includes/Text/Diff.php b/src/wp-includes/Text/Diff.php
    index 40dba1a4a3..eee4e4f8ea 100644
    a b class Text_MappedDiff extends Text_Diff { 
    296296    /**
    297297     * Computes a diff between sequences of strings.
    298298     *
    299      * This can be used to compute things like case-insensitve diffs, or diffs
     299     * This can be used to compute things like case-insensitive diffs, or diffs
    300300     * which ignore changes in white-space.
    301301     *
    302302     * @param array $from_lines         An array of strings.
  • src/wp-includes/class-wp-customize-widgets.php

    diff --git a/src/wp-includes/class-wp-customize-widgets.php b/src/wp-includes/class-wp-customize-widgets.php
    index c8a00c741f..8c822ea28f 100644
    a b final class WP_Customize_Widgets { 
    823823                );
    824824
    825825                foreach ( $settings['registeredWidgets'] as &$registered_widget ) {
    826                         unset( $registered_widget['callback'] ); // May not be JSON-serializeable.
     826                        unset( $registered_widget['callback'] ); // May not be JSON-serializable.
    827827                }
    828828
    829829                $wp_scripts->add_data(
    final class WP_Customize_Widgets { 
    13081308                );
    13091309
    13101310                foreach ( $settings['registeredWidgets'] as &$registered_widget ) {
    1311                         unset( $registered_widget['callback'] ); // May not be JSON-serializeable.
     1311                        unset( $registered_widget['callback'] ); // May not be JSON-serializable.
    13121312                }
    13131313                wp_print_inline_script_tag(
    13141314                        sprintf( 'var _wpWidgetCustomizerPreviewSettings = %s;', wp_json_encode( $settings ) )
  • src/wp-includes/global-styles-and-settings.php

    diff --git a/src/wp-includes/global-styles-and-settings.php b/src/wp-includes/global-styles-and-settings.php
    index acca33be1e..6ccf02f577 100644
    a b function wp_get_global_settings( $path = array(), $context = array() ) { 
    5454         * is always fresh from the potential modifications done via hooks
    5555         * that can use dynamic data (modify the stylesheet depending on some option,
    5656         * settings depending on user permissions, etc.).
    57          * See some of the existing hooks to modify theme.json behaviour:
     57         * See some of the existing hooks to modify theme.json behavior:
    5858         * https://make.wordpress.org/core/2022/10/10/filters-for-theme-json-data/
    5959         *
    6060         * A different alternative considered was to invalidate the cache upon certain