Opened 2 years ago
Last modified 20 months ago
#56522 assigned enhancement
Add filter for wp_get_layout_style
Reported by: | 10upiansvo | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.9 |
Component: | Editor | Keywords: | needs-patch |
Focuses: | template | Cc: |
Description
Currently, there is no filter for the output of this function, which contains the layout styles associated with a given block. Having this be filterable seems conducive to clean overrides versus having a specificity battle with inlined styles (which in many cases would require !important
to override), while allowing this to be a very intentional, opt-in feature.
I will be working on a patch for this which I'll add to the ticket once created.
Change History (3)
#3
in reply to:
↑ 2
@
20 months ago
Replying to thomasplevy:
Looks to me like this is still valid and, if desired, should probably be patched in the Gutenberg repo rather than in core, correct?
I agree with @thomasplevy. The discussion and resolution should happen upstream in the Gutenberg repo.
@10upiansvo would you be interested in reporting it here https://github.com/WordPress/gutenberg/issues?
Looks to me like this is still valid and, if desired, should probably be patched in the Gutenberg repo rather than in core, correct?