[wp-trac] [WordPress Trac] #65120: Add `wp_elements_block_supports_class_name` filter to `wp_get_elements_class_name()`
WordPress Trac
noreply at wordpress.org
Tue Apr 28 04:56:49 UTC 2026
#65120: Add `wp_elements_block_supports_class_name` filter to
`wp_get_elements_class_name()`
-------------------------------------+-------------------------------------
Reporter: baikare.sandeep007 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: template, performance,
has-test-info 2nd-opinion | coding-standards
-------------------------------------+-------------------------------------
Changes (by westonruter):
* keywords: has-patch needs-testing has-test-info => has-patch needs-
testing has-test-info 2nd-opinion
Comment:
I'm not sure this is a good idea. I don't see a clear need for it. Note
where the return value of the funtion is used:
https://github.com/WordPress/wordpress-
develop/blob/acebfd0ac218c455d25ae9e06879bc42da18b9c9/src/wp-includes
/block-supports/elements.php#L160-L220
By allowing the class name to be filtered, I worry this would introduce
breakages.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65120#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list