Ticket #12590: 12590.3.diff
File 12590.3.diff, 2.0 KB (added by , 14 years ago) |
---|
-
wp-includes/post.php
25 25 'hierarchical' => false, 26 26 'rewrite' => false, 27 27 'query_var' => false, 28 'supports' => array('title', ' editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions')28 'supports' => array('title', 'content', 'author', '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('title', ' editor', 'author', 'thumbnail', 'page-attributes', 'custom-fields', 'comments', 'revisions')41 'supports' => array('title', 'content', 'author', 'thumbnail', 'page-attributes', 'custom-fields', 'comments', 'revisions') 42 42 ) ); 43 43 44 44 register_post_type( 'attachment', array('label' => __('Media'), … … 839 839 unset($args->supports); 840 840 } else { 841 841 // Add default features 842 add_post_type_support($post_type, array('title', ' editor'));842 add_post_type_support($post_type, array('title', 'content')); 843 843 } 844 844 845 845 if ( false !== $args->query_var && !empty($wp) ) { … … 4585 4585 4586 4586 add_filter('the_preview', '_set_preview'); 4587 4587 } 4588 } 4589 No newline at end of file 4588 } -
wp-admin/edit-form-advanced.php
213 213 </div> 214 214 <?php } ?> 215 215 216 <?php if ( post_type_supports($post_type, ' editor') ) { ?>216 <?php if ( post_type_supports($post_type, 'content') ) { ?> 217 217 <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea"> 218 218 219 219 <?php the_editor($post->post_content); ?>