[wp-trac] [WordPress Trac] #51018: PHP Notice thrown when searching for certain terms via the Gutenberg block directory
WordPress Trac
noreply at wordpress.org
Sat Aug 15 12:52:01 UTC 2020
#51018: PHP Notice thrown when searching for certain terms via the Gutenberg block
directory
---------------------------+------------------------------
Reporter: TwentyZeroTwo | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.5
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by TwentyZeroTwo):
After a little investigation, the offending block in the above instance is
https://wordpress.org/plugins/map-block-gutenberg/.
It does not populate the `$plugin['blocks']` array so it is empty, causing
`$block_data = reset( $plugin['blocks'] );` to return `false`.
While the plugin author should obviously fix this, WordPress core should
handle such situations.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51018#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list