Make WordPress Core

Opened 20 months ago

Last modified 14 months ago

#56522 assigned enhancement

Add filter for wp_get_layout_style

Reported by: 10upiansvo's profile 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)

#1 @desrosj
18 months ago

  • Version changed from trunk to 5.9

#2 follow-up: @thomasplevy
14 months ago

Looks to me like this is still valid and, if desired, should probably be patched in the Gutenberg repo rather than in core, correct?

#3 in reply to: ↑ 2 @hellofromTonya
14 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?

Note: See TracTickets for help on using tickets.