[wp-trac] [WordPress Trac] #60411: Parent theme wrongly missing (till 6.5-alpha-57505)

WordPress Trac noreply at wordpress.org
Thu Feb 15 15:07:12 UTC 2024


#60411: Parent theme wrongly missing (till 6.5-alpha-57505)
-------------------------------------+-------------------------------------
 Reporter:  dennysdionigi            |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  6.5
Component:  Themes                   |     Version:  6.4.3
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch needs-       |     Focuses:  administration,
  testing                            |  template
-------------------------------------+-------------------------------------

Comment (by scruffian):

 I had a look into this. It seems that the problem is that when we call
 `wp_is_block_theme` in the script loader, we don't have an accurate value
 in `$wp_theme_directories` so it can't find the parent theme yet. The
 problem doesn't happen when the theme isn't active. I think the solution
 is probably to set up $wp_theme_directories earlier, or to use a different
 way of checking the condition in the wp-script-modules file.

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


More information about the wp-trac mailing list