Make WordPress Core


Ignore:
Timestamp:
05/19/2026 01:32:20 PM (3 months ago)
Author:
ellatrix
Message:

Editor: Bump pinned hash for the Gutenberg repository.
This updates the pinned hash from the gutenberg from 3a4e8d1418d25da83b70158bcaabf65580690b6b to a2a354cf35e5b69c3330d6c1cfd42d8dc2efb9fd.

The following changes are included:

A full list of changes can be found on GitHub: https://github.com/WordPress/gutenberg/compare/3a4e8d1418d25da83b70158bcaabf65580690b6b…a2a354cf35e5b69c3330d6c1cfd42d8dc2efb9fd.

Log created with:

git log --reverse --format="- %s" 3a4e8d1418d25da83b70158bcaabf65580690b6b..a2a354cf35e5b69c3330d6c1cfd42d8dc2efb9fd | sed 's|#\([0-9][0-9]*\)|https://github.com/WordPress/gutenberg/pull/\1|g; /github\.com\/WordPress\/gutenberg\/pull/!d' | pbcopy

See #64595.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/build/pages/options-connectors/page-wp-admin.php

    r62136 r62380  
    154154                wp_register_script( 'options-connectors-wp-admin-prerequisites', '', $asset['dependencies'], $asset['version'], true );
    155155
    156                 // Add inline script to initialize the app using initSinglePage (no menuItems)
     156                /*
     157                 * Add inline script to initialize the app using initSinglePage (no menuItems).
     158                 * The dynamic import is deferred until DOMContentLoaded so that all classic
     159                 * script dependencies of @wordpress/boot (wp-private-apis, wp-components,
     160                 * wp-theme, etc.) have finished parsing and executing before the boot module
     161                 * evaluates. Otherwise, a modulepreloaded @wordpress/boot can win the race
     162                 * against the classic-script-printing pass on fast CDN-fronted hosts in
     163                 * Chrome, evaluating before wp.theme.privateApis is defined and throwing
     164                 * "Cannot unlock an undefined object". See <https://core.trac.wordpress.org/ticket/65103>.
     165                 */
     166                $init_js_function = <<<'JS'
     167                ( mountId, routes ) => {
     168                        const run = async () => {
     169                                const mod = await import( "@wordpress/boot" );
     170                                mod.initSinglePage( { mountId, routes } );
     171                        };
     172                        if ( document.readyState === "loading" ) {
     173                                document.addEventListener( "DOMContentLoaded", run );
     174                        } else {
     175                                run();
     176                        }
     177                }
     178                JS;
    157179                wp_add_inline_script(
    158180                        'options-connectors-wp-admin-prerequisites',
    159181                        sprintf(
    160                                 'import("@wordpress/boot").then(mod => mod.initSinglePage({mountId: "%s", routes: %s}));',
    161                                 'options-connectors-wp-admin-app',
     182                                '( %s )( %s, %s );',
     183                                $init_js_function,
     184                                wp_json_encode( 'options-connectors-wp-admin-app', JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ),
    162185                                wp_json_encode( $routes, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES )
    163186                        )
Note: See TracChangeset for help on using the changeset viewer.