[wp-trac] [WordPress Trac] #55303: Update WP_Block_Patterns_Registry::register() docs to include the blockTypes property

WordPress Trac noreply at wordpress.org
Thu Mar 3 11:06:57 UTC 2022


#55303: Update WP_Block_Patterns_Registry::register() docs to include the
blockTypes property
-------------------------+-----------------------------
 Reporter:  vlad.olaru   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Editor       |    Version:
 Severity:  normal       |   Keywords:
  Focuses:  docs         |
-------------------------+-----------------------------
 Since WordPress 5.8, block patterns can declare a `blockTypes` property to
 allow blocks to use those patterns in other contexts, besides the
 inserter. The `WP_Block_Patterns_Registry::register()` function is missing
 the documentation about this logic.

 Here is the discussion related to `blockTypes`
 https://github.com/WordPress/gutenberg/pull/30471

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


More information about the wp-trac mailing list