Show page template dropdown only for pages and not for other post types. Props greenshady. fixes #12759

git-svn-id: https://develop.svn.wordpress.org/trunk@14642 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-05-14 18:20:04 +00:00
parent 4b3be4e693
commit c5ef0f8fc5
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ function page_attributes_meta_box($post) {
<?php
} // end empty pages check
} // end hierarchical check.
if ( 0 != count( get_page_templates() ) ) {
if ( 'page' == $post->post_type && 0 != count( get_page_templates() ) ) {
$template = !empty($post->page_template) ? $post->page_template : false;
?>
<h5><?php _e('Template') ?></h5>