Make WordPress Core

Opened 21 months ago

Closed 21 months ago

Last modified 21 months ago

#57532 closed enhancement (fixed)

Patterns: Migrate old pattern categories to new categories

Reported by: ntsekouras's profile ntsekouras Owned by: hellofromtonya's profile hellofromTonya
Milestone: 6.2 Priority: normal
Severity: normal Version:
Component: Editor Keywords: has-patch has-unit-tests gutenberg-merge commit
Focuses: rest-api Cc:

Description

This ticket tracks the addition of pattern categories migration in WP_REST_Block_Patterns_Controller.

Related GB PR: https://github.com/WordPress/gutenberg/pull/46144.

Part of the GB PR was merged in this changeset: https://core.trac.wordpress.org/changeset/55098

Change History (6)

This ticket was mentioned in PR #3892 on WordPress/wordpress-develop by @ntsekouras.


21 months ago
#1

  • Keywords has-patch has-unit-tests added

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

This PR adds the pattern categories migration in WP_REST_Block_Patterns_Controller.
Related GB PR: https://github.com/WordPress/gutenberg/pull/46144.
Part of the GB PR was merged in this changeset: https://core.trac.wordpress.org/changeset/55098

#2 @hellofromTonya
21 months ago

  • Keywords gutenberg-merge added
  • Milestone changed from Awaiting Review to 6.2
  • Summary changed from Backport the pattern categories migration to Patterns: Add new pattern categories

#3 @hellofromTonya
21 months ago

  • Keywords commit added
  • Owner changed from ntsekouras to hellofromTonya
  • Status changed from assigned to reviewing

PR 3892 LGTM and is ready for commit.

Self-assigning for commit.

#4 @hellofromTonya
21 months ago

  • Focuses rest-api added
  • Summary changed from Patterns: Add new pattern categories to Patterns: Migrate old pattern categories to new categories

#5 @hellofromTonya
21 months ago

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

In 55125:

Editor: Migrate old to the new pattern categories.

Adds a new non-public WP_REST_Block_Patterns_Controller::migrate_pattern_categories() method to automatically migrate existing content's pattern categories to the new ones introduced in [55098].

Old to New
'buttons' to 'call-to-action'
'columns' to 'text'
'query' to 'posts'

Reference:

Follow-up to [55098], [53152].

Props ntsekouras, annezazu, jameskoster, joen, hellofromTonya, mcsf, paaljoachim, ryelle.
Fixes #57532.

Note: See TracTickets for help on using tickets.