[wp-trac] [WordPress Trac] #53610: Remove references to Gutenberg specific functions
WordPress Trac
noreply at wordpress.org
Tue Jul 6 17:49:12 UTC 2021
#53610: Remove references to Gutenberg specific functions
--------------------------+--------------------------
Reporter: desrosj | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.8
Component: Editor | Version:
Severity: normal | Keywords: dev-feedback
Focuses: |
--------------------------+--------------------------
There are a few references to Gutenberg specific functions or named with
the `gutenberg_` prefix that should be updated in Core.
- The `render_block_core_legacy_widget()` function has calls to
`gutenberg_get_widget_key()` and `gutenberg_get_widget_object()`
([https://core.trac.wordpress.org/browser/trunk/src/wp-includes/blocks
/legacy-widget.php?rev=51351#L32 source]). It seems that this entire
conditional block can be removed in favor of the first condition's code
since WordPress >= 5.8 can be confident the methods exist.
- In `wp-includes/blocks/post-template.php`, there is a function named
`gutenberg_register_legacy_query_loop_block()`. The docblock says that it
"can be removed when WordPress 5.9 is released" and appears to unregister
the `core/query-loop` block before re-registering it. Is there any reason
why Core can't authoritatively register the block type as it does others?
([https://core.trac.wordpress.org/browser/trunk/src/wp-includes/blocks
/post-template.php?rev=51351#L112 source]).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53610>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list