Make WordPress Core

Opened 22 months ago

Closed 21 months ago

Last modified 21 months ago

#55303 closed enhancement (fixed)

Update WP_Block_Patterns_Registry::register() docs to include the blockTypes property

Reported by: vladolaru's profile vlad.olaru Owned by: peterwilsoncc's profile peterwilsoncc
Milestone: 6.0 Priority: normal
Severity: normal Version:
Component: Editor Keywords: has-patch
Focuses: docs Cc:

Description

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

Change History (4)

This ticket was mentioned in PR #2375 on WordPress/wordpress-develop by vladolaru.


22 months ago
#1

  • Keywords has-patch added

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.

Trac ticket: https://core.trac.wordpress.org/ticket/55303

#2 @SergeyBiryukov
22 months ago

  • Milestone changed from Awaiting Review to 6.0

#3 @peterwilsoncc
21 months ago

  • Owner set to peterwilsoncc
  • Resolution set to fixed
  • Status changed from new to closed

In 52943:

Editor/Docs: Add blockTypes argument to WP_Block_Patterns_Registry::register() docblock.

Add the optional blockTypes argument in the patten properties for WP_Block_Patterns_Registry::register().

Props vlad.olaru.
Fixes #55303.
See #54729.

Note: See TracTickets for help on using tickets.