-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include edit-widgets php files in build #25792
Conversation
Size Change: 0 B Total Size: 1.18 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for the fix!
Lets merge this, though I also wonder if it'd make sense to the move the legacy-widget block into the block library given it's already a dependency of the edit-widget screen.
Nothing stopping that change from happening after this PR is merged, so I think we should do this first, and address that later.
edit: I see now this was specifically moved from block-library
in #25371, though I'm still not convinced that was really necessary.
* Include edit-widgets php files in build (#25792) * Fix PHP warining in widget utils controller (#25797) * Fix PHP warning in WP_REST_Widget_Utils_Controller The `WP_REST_Widget_Utils_Controller::is_valid_widget` method needs to be public in order to be accessible as a callback (since it's being called from outside the class, via `call_user_func`). This commit fixes the warning by changing the method's visibility from `private` to `public`. * Ammend the inline documentation. Add `* @access public` * [Widgets Editor] Fix insertion point in widget areas (#25727) * Move hooks inside the newly created Interface component * Fix insertion at the top of the widget area * Fix widget insertion from sidebar block library by using a declared insertionPoint prop (#25763) * Fix widget insertion from sidebar block library by using a declared insertionPoint prop * Add comments * Optimize by avoiding `getEntityRecord` call unless needed Co-authored-by: Daniel Richards <[email protected]> * Initialize the state before rendering widgets editor (#25736) * Initialize the state before rendering widgets editor * Replace empty div with null * Document persistStubPost * Document persistStubPost further * Bump version to 9.1.1 * Update changelog * Fix spaces in changelog.txt * Adjust spaces in changelog.txt * Fix link formatting in the changelog Co-authored-by: Jon Surrell <[email protected]> Co-authored-by: David Biňovec <[email protected]> Co-authored-by: Kai Hao <[email protected]> Co-authored-by: Daniel Richards <[email protected]>
Description
The plugin build is currently broken after #25371 which moved the
core/legacy-widget
block to theedit-widgets
package. This directory now includesblock.json
andindex.php
files which should be included in the plugin build just likeblock-library
.This causes PHP fatal errors in the widget block editor like:
Props to @david-binda for spotting missing files and fatals.
How has this been tested?
Install the 9.1.0 plugin from the plugin repository and the PHP fatals can be observed when visiting the new Widgets block editor.
Confirm that the necessary files were missing from v9.1.0:
In this branch
Types of changes
Bug fix (non-breaking change which fixes an issue)
Fix missing files from the plugin build.
Checklist: