Make WordPress Core

Opened 3 years ago

Closed 21 months ago

Last modified 21 months ago

#53647 closed enhancement (fixed)

Twenty Twenty-One: Add blockType suggestions to block patterns

Reported by: ryelle's profile ryelle Owned by: audrasjb's profile audrasjb
Milestone: 6.1 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: has-patch commit assigned-for-commit
Focuses: Cc:

Description

When using a given block, patterns can be suggested which use that block. For example, in Twenty Twenty-One, the "Large Text" pattern uses a heading block, so if the user adds a heading block, it should suggest this pattern.

See Contextual patterns for easier creation for more details.

The patterns in Twenty Twenty-One should be updated to have these suggestions.

Attachments (2)

53647.diff (8.7 KB) - added by ryelle 3 years ago.
Screen Shot 2021-07-12 at 1.25.37 PM.png (960.6 KB) - added by ryelle 3 years ago.
Columns block & suggestions

Download all attachments as: .zip

Change History (9)

@ryelle
3 years ago

@ryelle
3 years ago

Columns block & suggestions

#1 @ryelle
3 years ago

  • Keywords has-patch added

This adds the following suggestions:

  • Heading: Large Text
  • Cover: Links area
  • Columns: Overlapping images, Overlapping images and text, Contact information

#2 @poena
21 months ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 6.1

This is a small change that will help users find and select patterns, it would be good to add it to the next theme release or 6.1, which ever is first.

This ticket was mentioned in PR #2990 on WordPress/wordpress-develop by audrasjb.


21 months ago
#3

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

This fixes a coding standard issue on previous patch.

#4 @audrasjb
21 months ago

  • Owner set to audrasjb
  • Status changed from new to reviewing

#5 @audrasjb
21 months ago

  • Keywords assigned-for-commit added

Tests are passing, let's ship this patch :)

#6 @audrasjb
21 months ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 53716:

Twenty Twenty-One: Add block type suggestions to block patterns.

When using a given block, patterns which use that block can be suggested. This changeset adds blockType suggestion for several Twenty Twenty-One bundled patterns.

Props ryelle, poena, audrasjb.
Fixes #53647.

Note: See TracTickets for help on using tickets.