You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit improves the Gutenberg build integration in several ways:
1. Adds a new `gutenberg:sync` script that follows the same pattern as
`install-changed` - storing a hash of the built ref in `.gutenberg-hash`
and only rebuilding when the ref changes. This ensures that when the
`gutenberg.ref` in package.json changes (e.g., after `git pull`), the
next build will automatically rebuild Gutenberg.
2. Updates `postinstall` to run the full checkout + build + copy flow,
so `npm install` produces a working development environment.
3. Adds conditional `file_exists()` checks around the PHP files from
`wp-includes/build/` so WordPress doesn't fatal error if these files
don't exist yet.
4. Restores Gutenberg's `package.json` after the build completes using
`git checkout`, keeping the Gutenberg checkout clean.
5. Removes the `gutenberg:integrate` script and `gutenberg-integrate`
grunt task since their functionality is now handled by `gutenberg:sync`.
This simplifies the developer workflow and restores a similar flow to
how package dependencies worked before - where `npm install` handles
everything and subsequent builds are fast because they skip the already-
built Gutenberg.
See #64393.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: src/wp-admin/font-library.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@
22
22
if ( ! function_exists( 'font_library_wp_admin_render_page' ) ) {
23
23
wp_die(
24
24
'<h1>' . __( 'Font Library is not available.' ) . '</h1>' .
25
-
'<p>' . __( 'The Font Library requires Gutenberg integration. Please run <code>npm run gutenberg:integrate</code> to build the necessary files.' ) . '</p>',
25
+
'<p>' . __( 'The Font Library requires Gutenberg build files. Please run <code>npm install</code> to build the necessary files.' ) . '</p>',
0 commit comments