[wp-trac] [WordPress Trac] #38696: Empty Post Attributes meta box showing for all post types when using a child theme

WordPress Trac noreply at wordpress.org
Mon Nov 7 19:44:29 UTC 2016


#38696: Empty Post Attributes meta box showing for all post types when using a
child theme
--------------------------------------+-----------------------------
 Reporter:  justinbusa                |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  4.7
Component:  Posts, Post Types         |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  administration
--------------------------------------+-----------------------------
Changes (by swissspidy):

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


Comment:

 @justinbusa Good catch. This line revealed that
 `\WP_Theme::get_page_templates()` isn't passing the `$post_type` when
 checking for templates of the parent theme, causing a false positive.

 [attachment:38696.diff] adds a test for checking templates of a child
 theme.

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


More information about the wp-trac mailing list