[wp-trac] [WordPress Trac] #55195: Calling `::parent()` on a child theme object where parent theme is missing `index.php` returns false in WP5.9

WordPress Trac noreply at wordpress.org
Fri Feb 18 22:11:51 UTC 2022


#55195: Calling `::parent()` on a child theme object where parent theme is missing
`index.php` returns false in WP5.9
--------------------------+---------------------
 Reporter:  robdxw        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.9.2
Component:  Themes        |     Version:  5.9
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+---------------------
Changes (by azouamauriac):

 * keywords:   => needs-patch


Comment:

 Hello thanks for your report. I'm able to reproduce the bug, unfortunately
 I don't find the cause for the moment. but it seems like
 `$theme->parent()` returns an `objet` in 5.8 while it returns `false` in
 5.9...
 Also the github link you've provided, it seems like it's just for a
 fonction renamed.

 If you have more detail about the source of issue feel free to share it.
 thanks.

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


More information about the wp-trac mailing list