[wp-trac] [WordPress Trac] #57141: WP_Theme cannot locate a parent block theme

WordPress Trac noreply at wordpress.org
Fri Nov 18 04:05:43 UTC 2022


#57141: WP_Theme cannot locate a parent block theme
-------------------------------------------------+-------------------------
 Reporter:  dd32                                 |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Themes                               |     Version:  6.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-unit-tests needs-    |     Focuses:
  testing                                        |
-------------------------------------------------+-------------------------
Changes (by dd32):

 * keywords:  has-patch => has-patch needs-unit-tests needs-testing
 * version:   => 6.0


Old description:

> 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.
>
> [insert screenshot]
>
> 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.

New description:

 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.

--

Comment:

 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57141#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list