[wp-trac] [WordPress Trac] #49615: Editor: Support filtering arguments in block type registration

WordPress Trac noreply at wordpress.org
Wed Mar 11 00:18:27 UTC 2020


#49615: Editor: Support filtering arguments in block type registration
-------------------------+------------------------------
 Reporter:  aduth        |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Editor       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by azaozz):

 Code looks good here too.

 My only concern is what would happen (if anything) when registered block
 properties are removed.

 Use case:
 - Plugins adds three more props to the Paragraph block.
 - The block is used in posts, including the three props.
 - Plugin is deactivated.
 - User edits one of the older posts that includes paragraph blocks with
 the three (now non-registered) props.

 Similarly, this filter makes it possible to remove properties from the
 default/core blocks. Is that supported / is it a good idea?

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


More information about the wp-trac mailing list