[wp-trac] [WordPress Trac] #45451: Filter to allow plugins override block attributes

WordPress Trac noreply at wordpress.org
Mon Jan 14 01:47:01 UTC 2019


#45451: Filter to allow plugins override block attributes
------------------------------+---------------------
 Reporter:  kkarpieszuk       |       Owner:  pento
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  5.1
Component:  Editor            |     Version:  5.0
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+---------------------

Comment (by pento):

 In [changeset:"44576" 44576]:
 {{{
 #!CommitTicketReference repository="" revision="44576"
 Blocks: Add a `$source_block` parameter to the `render_block_data` filter.

 This contains a copy of the block, unmodified by other filter functions,
 so that plugins have a clean reference to work from, if they need.

 Props dmsnell.
 Fixes #45451.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45451#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list