Make WordPress Core

Opened 2 months ago

Closed 2 months ago

#62367 closed defect (bug) (reported-upstream)

Twenty twenty-five theme, crash when duplicating "uncategorized" patterns

Reported by: rickers's profile rickers Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.7
Component: Editor Keywords:
Focuses: Cc:

Description

condition: Fresh install of wordpress 6.7.RC4. Default 2025 theme.

Recreate problem:

  1. Navigate "appearance" -> "editor" -> "patterns" -> "uncategorized"
  2. select one of the three patterns -> hamburger -> "duplicate"

problem occurs

symptom: black screen - stall -- needs browser refresh to restore.
also throws javascript error;
Uncaught TypeError: e.categories is undefined ... patterns.min.js:2:6657

Change History (1)

#1 @poena
2 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

Hi @rickers and thank you for the report.

I am able to reproduce this with any theme that registers patterns without categories.
Both classic themes and block themes.

The categories parameter is not required, so the pattern screen should not show an error when a pattern are missing categories.

Because the problem is related to the editor and not the theme, I have created a new issue in the Gutenberg GitHub repository: https://github.com/WordPress/gutenberg/issues/66888

Please continue the discussion there.

Note: See TracTickets for help on using tickets.