Opened 4 years ago
Last modified 3 years ago
#56522 assigned enhancement
Add filter for wp_get_layout_style
| Reported by: | 10upiansvo | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Editor | Version: | 5.9 |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: | template |
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
@
3 years 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?
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Looks to me like this is still valid and, if desired, should probably be patched in the Gutenberg repo rather than in core, correct?