Make WordPress Core

Opened 19 months ago

Last modified 19 months ago

#57141 new defect (bug)

WP_Theme cannot locate a parent block theme

Reported by: dd32's profile dd32 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.0
Component: Themes Keywords: has-patch needs-unit-tests needs-testing
Focuses: Cc:

Description (last modified by dd32)

As reported here: https://github.com/WordPress/gutenberg/issues/45811 after a discussion in slack: https://wordpress.slack.com/archives/C02QB8GMM/p1668569269811889

On wp-themes.com we're running into a use-case where the Parent theme cannot be located when both the parent and child theme are block themes, and the parent does not have an index.php file.

(See screenshot attached below, where the parent theme is 100% most definitely installed)

This appears to work on some installations, but not on others. I believe it working might be down to caching, I haven't figured that out.

The attached PR updates the code in WP_Theme to support the same theme files as supported via [53416] for themes in parent themes.

Attachments (1)

Screen Shot 2022-11-18 at 1.55.12 pm.png (690.7 KB) - added by dd32 19 months ago.

Download all attachments as: .zip

Change History (8)

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


19 months ago
#1

  • Keywords has-patch added

#2 @dd32
19 months ago

  • Description modified (diff)
  • Keywords needs-unit-tests needs-testing added
  • Version set to 6.0

I'm not familiar enough with the rest of this code to really figure out if the PR is a complete solution, but it appears to work for me.

#3 @dd32
19 months ago

Note: While https://github.com/WordPress/gutenberg/issues/45811 suggests that Gutenberg needs to be active to trigger the issue, I can duplicate the WP_Theme issues with or without it.

This ticket was mentioned in Slack in #core-themes by dd32. View the logs.


19 months ago

This ticket was mentioned in Slack in #meta by nosolosw. View the logs.


19 months ago

This ticket was mentioned in Slack in #meta by nosolosw. View the logs.


19 months ago

This ticket was mentioned in Slack in #meta by dd32. View the logs.


19 months ago

Note: See TracTickets for help on using tickets.