mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-10 18:37:58 +01:00
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:
parent
83ae6a51ea
commit
23e3b38d4f
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user