Skip to content

Child theme issue: Duplicate Templates and Template Parts in Site Editor #53138

@bgardner

Description

@bgardner

Description

When a child theme is active and includes templates, there is a duplication issue in the Site Editor. Two instances of each template that exists in the child theme are present, with the parent template being loaded in the Site Editor (while the front end is properly using the child theme template).

Step-by-step reproduction instructions

  1. Create a child theme with templates and template parts.
  2. Activate child theme and access the Site Editor > Templates (or Template Parts) screen.

For testing purposes, I am attaching a zip file with TT3 and a sample TT3 child theme.
tt3-themes.zip

Screenshots, screen recording, code snippet

Screen.Recording.2023-07-29.at.10.56.43.AM.mov

Environment info

Problem DOES NOT exist with WP 6.2.2 and Gutenberg 16.3 active.
Problem DOES exist with WP 6.3 RC2 (with or without Gutenberg 16.3 active).

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

Labels

[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[Type] BugAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest release

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions