Posts, Post Types: Fix post type templates with child themes.
After [38951] added support for post type templates beyond pages, this fixes an issue where an empty meta box would be shown when using child themes. Fixes #38696. Built from https://develop.svn.wordpress.org/trunk@39168 git-svn-id: http://core.svn.wordpress.org/trunk@39108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1082,7 +1082,7 @@ final class WP_Theme implements ArrayAccess {
|
||||
$post_templates = isset( $post_templates[ $post_type ] ) ? $post_templates[ $post_type ] : array();
|
||||
|
||||
if ( $this->parent() ) {
|
||||
$post_templates += $this->parent()->get_page_templates( $post );
|
||||
$post_templates += $this->parent()->get_page_templates( $post, $post_type );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-beta2-39167';
|
||||
$wp_version = '4.7-beta2-39168';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user