Make WordPress Core

Opened 8 months ago

Closed 8 months ago

Last modified 8 months ago

#59379 closed enhancement (fixed)

Add taxonomy for user created patterns

Reported by: glendaviesnz's profile glendaviesnz Owned by: isabel_brison's profile isabel_brison
Milestone: 6.4 Priority: normal
Severity: normal Version: 6.4
Component: General Keywords: has-patch gutenberg-merge
Focuses: Cc:

Description (last modified by desrosj)

The Gutenberg plugin added a taxonomy to allow users to categorise their own patterns (https://github.com/WordPress/gutenberg/pull/53163), so this needs to be merged for the 6.4 release.

Change History (10)

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


8 months ago
#1

  • Keywords has-patch added

## Description

Adds a custom taxonomy wp_pattern_category to allow users to assign categories to their custom patterns.

Gutenberg PR .

Trac ticket: [](https://core.trac.wordpress.org/ticket/59379)

## Testing Instructions

  • Go to /wp-admin/edit.php?post_type=wp_block and add a new pattern
  • Make sure the Category option appears in the right settings panel and that you can add new categories

## Screenshots or screencast

https://github.com/WordPress/gutenberg/assets/3629020/63895ddc-415a-4fea-ac7a-177813d138a4

#2 @kebbet
8 months ago

  • Keywords gutenberg-merge added

@Mamaduka commented on PR #5234:


8 months ago
#3

@glendaviesnz, do you mind including changes from https://github.com/WordPress/gutenberg/pull/54567 here as well?

#4 @desrosj
8 months ago

  • Description modified (diff)
  • Milestone changed from Awaiting Review to 6.4
  • Summary changed from Backport: add taxonomy for user created patterns to Add taxonomy for user created patterns

@Mamaduka commented on PR #5234:


8 months ago
#5

Thank you, @glendaviesnz!

@glendaviesnz commented on PR #5234:


8 months ago
#6

@glendaviesnz, do you mind including changes from WordPress/gutenberg#54567 here as well?

Done @Mamaduka

@glendaviesnz commented on PR #5234:


8 months ago
#7

@tellthemachines the remaining test failures don't seem to be related this PR but I don't have permissions to restart them - are you able to rerun the failed jobs please?

@isabel_brison commented on PR #5234:


8 months ago
#8

@glendaviesnz thanks for sorting the issue out! I've restarted the e2e tests but they've been failing often on PR branches so it's not really a concern 🤷 as long as all the PHP tests pass we're good.

#9 @isabel_brison
8 months ago

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

In 56642:

Taxonomy: add taxonomy for user pattern categories.

Adds a wp_pattern_category taxonomy linked to the wp-block object.

Props glendaviesnz, kebbet, desrosj, mamaduka.
Fixes #59379.

@isabel_brison commented on PR #5234:


8 months ago
#10

Committed in r56642.

Note: See TracTickets for help on using tickets.