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

git-svn-id: http://svn.automattic.com/wordpress/trunk@14642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-05-14 18:20:04 +00:00
parent 83ae6a51ea
commit 23e3b38d4f
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>