Make WordPress Core

Opened 12 days ago

Closed 5 days ago

#63055 closed defect (bug) (fixed)

Template parts missing from 6.8 beta 1

Reported by: mmcalister's profile mmcalister Owned by: joemcgill's profile joemcgill
Milestone: 6.8 Priority: normal
Severity: normal Version: trunk
Component: Editor Keywords: needs-patch
Focuses: Cc:

Description

In the recently released 6.8 beta 1, template parts are missing in the site editor. They were previously found under the patterns menu, but they are no longer listed.

To replicate, you can go to Appearance → Editor → Patterns to see the missing template parts section.

The problem occurs even with the default theme with no other plugins active.

Attachments (1)

Screenshot 2025-03-04 at 8.05.21 PM.png (101.1 KB) - added by joemcgill 12 days ago.
CategoriesGroup component screenshot

Download all attachments as: .zip

Change History (9)

#1 @joemcgill
12 days ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 6.8
  • Owner set to joemcgill
  • Status changed from new to reviewing
  • Version set to trunk

Thanks, @mmcalister! I can confirm that this is reproducible in WP 6.8 Beta 1, but not in the latest nightly of the Gutenberg plugin. Judging from some 500 errors I'm seeing in the console log, I suspect that this is a side effect of https://core.trac.wordpress.org/ticket/56481#comment:45.

@joemcgill
12 days ago

CategoriesGroup component screenshot

#2 @joemcgill
12 days ago

Replying to joemcgill:

Judging from some 500 errors I'm seeing in the console log, I suspect that this is a side effect of https://core.trac.wordpress.org/ticket/56481#comment:45.

After a bit more testing, I think I've ruled out this theory. Even when the HEAD requests are fixed, these are still not displaying. I can confirm that the component is being rendered, but no templatePartAreas seem to be returned from the useTemplatePartAreas() hook.

#3 @wildworks
12 days ago

I think it's because the template part area hasn't been added to the REST API index yet. Once the following PR is merged, this issue should be resolved.

https://github.com/WordPress/wordpress-develop/pull/8422

cc @Mamaduka

#4 @Mamaduka
12 days ago

Thanks for the ping, @wildworks, and for reporting the issue, @mmcalister!

This was expected and will be fixed via #62574 in Beta 2.

#5 @mmcalister
12 days ago

Thanks for the info, @wildworks and @Mamaduka! I'll keep an eye on this for the next beta.

This ticket was mentioned in Slack in #core by joemcgill. View the logs.


11 days ago

This ticket was mentioned in Slack in #core by peterwilsoncc. View the logs.


10 days ago

#8 @joemcgill
5 days ago

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

Following the latest @wordpress/* package syncs in [59961] and the REST API updates in [59965], this appears to be fixed.

Note: See TracTickets for help on using tickets.