[wp-trac] [WordPress Trac] #53481: Widget Block Editor: fatal error caused by unknown gutenberg_get_widget_key() function
WordPress Trac
noreply at wordpress.org
Wed Jun 23 20:52:51 UTC 2021
#53481: Widget Block Editor: fatal error caused by unknown
gutenberg_get_widget_key() function
--------------------------+---------------------
Reporter: imath | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.8
Component: Widgets | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+---------------------
Changes (by hellofromTonya):
* status: new => closed
* resolution: => fixed
Comment:
== Testing
Env:
- OS: macOS Big Sur
- Browser: Firefox and Chrome
- Plugins: none
== Testing with Beta 2
I can reproduce the problem ✅
== Testing with Beta 3
Problem is resolved ✅
How?
Changeset [51216] from ticket #53427 added the new
`WP_Widget_Factory::get_widget_key` method, which is the first
conditional. With that new method, the `else` conditional is never reached
in 5.8. The Gutenberg function `gutenberg_get_widget_key` will addressed
separately but should no longer be a problem for causing fatal errors.
Marking the ticket as fixed.
@imath if you get time, could you also test and confirm it resolves the
issue for you? If no, please reopen.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53481#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list