Make WordPress Core

Ticket #60285: 60285.2.patch

File 60285.2.patch, 1.5 KB (added by shailu25, 10 months ago)

Updated Patch

  • 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 ) )