Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#55303 closed enhancement (fixed)

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

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

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.


5 years 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
5 years ago

  • Milestone Awaiting Review → 6.0

#3 @peterwilsoncc
5 years ago

  • Owner set to peterwilsoncc
  • Resolution → fixed
  • Status new → 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.