[wp-trac] [WordPress Trac] #57532: Patterns: Migrate old pattern categories to new categories

WordPress Trac noreply at wordpress.org
Tue Jan 24 14:34:25 UTC 2023


#57532: Patterns: Migrate old pattern categories to new categories
-------------------------------------------------+-------------------------
 Reporter:  ntsekouras                           |       Owner:
                                                 |  hellofromTonya
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.2
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests gutenberg-  |     Focuses:  rest-api
  merge commit                                   |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55125" 55125]:
 {{{
 #!CommitTicketReference repository="" revision="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:
 * Part of [https://github.com/WordPress/gutenberg/pull/46144 Gutenberg PR
 46144]

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

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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57532#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list