WordPress.org

Make WordPress Core

Changeset 14642


Ignore:
Timestamp:
05/14/10 18:20:04 (4 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/meta-boxes.php

    r14614 r14642  
    545545        } // end empty pages check 
    546546    } // end hierarchical check. 
    547     if ( 0 != count( get_page_templates() ) ) { 
     547    if ( 'page' == $post->post_type && 0 != count( get_page_templates() ) ) { 
    548548        $template = !empty($post->page_template) ? $post->page_template : false; 
    549549        ?> 
Note: See TracChangeset for help on using the changeset viewer.