Ticket #12590: 12590.2.diff
File 12590.2.diff, 3.0 KB (added by , 15 years ago) |
---|
-
wp-includes/post.php
25 25 'hierarchical' => false, 26 26 'rewrite' => false, 27 27 'query_var' => false, 28 'supports' => array(' post-thumbnails', 'excerpts', 'trackbacks', 'custom-fields', 'comments', 'revisions')28 'supports' => array('title', 'editor', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions') 29 29 ) ); 30 30 31 31 register_post_type( 'page', array( 'label' => __('Pages'), … … 38 38 'hierarchical' => true, 39 39 'rewrite' => false, 40 40 'query_var' => false, 41 'supports' => array(' post-thumbnails', 'page-attributes', 'custom-fields', 'comments', 'revisions')41 'supports' => array('title', 'editor', 'thumbnail', 'page-attributes', 'custom-fields', 'comments', 'revisions') 42 42 ) ); 43 43 44 44 register_post_type( 'attachment', array('label' => __('Media'), -
wp-admin/edit-form-advanced.php
106 106 if ( post_type_supports($post_type, 'page-attributes') ) 107 107 add_meta_box('pageparentdiv', __('Attributes'), 'page_attributes_meta_box', $post_type, 'side', 'core'); 108 108 109 if ( current_theme_supports( 'post-thumbnails', $post_type ) && post_type_supports($post_type, ' post-thumbnails') )109 if ( current_theme_supports( 'post-thumbnails', $post_type ) && post_type_supports($post_type, 'thumbnail') ) 110 110 add_meta_box('postimagediv', __('Post Thumbnail'), 'post_thumbnail_meta_box', $post_type, 'side', 'low'); 111 111 112 if ( post_type_supports($post_type, 'excerpt s') )112 if ( post_type_supports($post_type, 'excerpt') ) 113 113 add_meta_box('postexcerpt', __('Excerpt'), 'post_excerpt_meta_box', $post_type, 'normal', 'core'); 114 114 115 115 if ( post_type_supports($post_type, 'trackbacks') ) … … 184 184 185 185 <div id="post-body"> 186 186 <div id="post-body-content"> 187 <?php if ( post_type_supports($post_type, 'title') ) { ?> 187 188 <div id="titlediv"> 188 189 <div id="titlewrap"> 189 190 <label class="screen-reader-text" for="title"><?php _e('Title') ?></label> … … 198 199 199 200 if ( !( 'pending' == $post->post_status && !current_user_can( $post_type_object->publish_cap ) ) ) { ?> 200 201 <div id="edit-slug-box"> 201 <?php202 if ( ! empty($post->ID) && ! empty($sample_permalink_html) && 'auto-draft' != $post->post_status ) :203 echo $sample_permalink_html;204 endif;?>202 <?php 203 if ( ! empty($post->ID) && ! empty($sample_permalink_html) && 'auto-draft' != $post->post_status ) 204 echo $sample_permalink_html; 205 ?> 205 206 </div> 206 207 <?php 207 } ?> 208 } 209 ?> 208 210 </div> 209 211 </div> 212 <?php } ?> 210 213 214 <?php if ( post_type_supports($post_type, 'editor') ) { ?> 211 215 <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea"> 212 216 213 217 <?php the_editor($post->post_content); ?> … … 239 243 </div> 240 244 241 245 <?php 246 } 242 247 243 248 do_meta_boxes($post_type, 'normal', $post); 244 249