[wp-trac] [WordPress Trac] #59443: Block Supports: Backport update from Gutenberg
WordPress Trac
noreply at wordpress.org
Mon Sep 25 19:07:44 UTC 2023
#59443: Block Supports: Backport update from Gutenberg
-------------------------+-----------------------------
Reporter: dmsnell | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: trunk
Severity: normal | Keywords: has-patch
Focuses: |
-------------------------+-----------------------------
See WordPress/gutenberg#54075
Refactors block supports to use a single Tag Processor instance and to
only send a single class at a time to `add_class()`. This is preparatory
work for a change in the Tag Processor so that its behavior more closely
matches its naming (`add_class()` is singular and should only accept a
single class).
There should be no functional changes in this patch, though the re-use of
the Tag Processor should have a negligible positive impact on performance.
Since I'm not the author of the block supports code I'm at a disadvantage
for scrutinizing the changes, though the update has been running fine in
Gutenberg for three weeks. That suggests the most critical review
necessary here is whether this patch is a proper backport from the
Gutenberg code, since the two block supports functions are different in
each repository.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59443>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list