WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/08/2016 10:40:28 PM (5 years ago)
Author:
swissspidy
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme.php

    r38951 r39168  
    10831083
    10841084        if ( $this->parent() ) {
    1085             $post_templates += $this->parent()->get_page_templates( $post );
     1085            $post_templates += $this->parent()->get_page_templates( $post, $post_type );
    10861086        }
    10871087
Note: See TracChangeset for help on using the changeset viewer.