[wp-trac] [WordPress Trac] #56522: Add filter for wp_get_layout_style

WordPress Trac noreply at wordpress.org
Tue Sep 6 15:56:00 UTC 2022


#56522: Add filter for wp_get_layout_style
-------------------------+-----------------------------
 Reporter:  10upiansvo   |      Owner:  (none)
     Type:  enhancement  |     Status:  assigned
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Editor       |    Version:  trunk
 Severity:  normal       |   Keywords:  needs-patch
  Focuses:  template     |
-------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56522>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list