[wp-trac] [WordPress Trac] #41717: WP_Theme::get_post_templates() fails to read parent theme

WordPress Trac noreply at wordpress.org
Thu Aug 24 09:50:14 UTC 2017


#41717: WP_Theme::get_post_templates() fails to read parent theme
------------------------------------------+------------------------------
 Reporter:  JoelStransky                  |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Themes                        |     Version:  4.7
 Severity:  normal                        |  Resolution:
 Keywords:  needs-unit-tests needs-patch  |     Focuses:
------------------------------------------+------------------------------
Changes (by swissspidy):

 * keywords:  needs-unit-tests => needs-unit-tests needs-patch


Comment:

 You're right, now I know what you mean. It probably was a bit too late
 yesterday for me :)

 When fixing the `get_post_templates` method we can also remove the
 `$post_templates += $this->parent()->get_page_templates( $post, $post_type
 );` line from `get_page_templates()` to clean things up a bit.

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


More information about the wp-trac mailing list