Ticket #21391: 21391.diff

File 21391.diff, 1.6 KB (added by martythornley, 10 months ago)
  • wp-includes/post.php

     
    5656                        'edit_item' => __( 'Edit Media' ), 
    5757                ), 
    5858                'public' => true, 
    59                 'show_ui' => false, 
     59                'show_ui' => true, 
    6060                '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 
    61                 '_edit_link' => 'media.php?attachment_id=%d', /* internal use only. don't use this when registering your own post type. */ 
     61                '_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */ 
    6262                'capability_type' => 'post', 
    6363                'map_meta_cap' => true, 
    6464                'hierarchical' => false, 
     
    6666                'query_var' => false, 
    6767                'show_in_nav_menus' => false, 
    6868                'delete_with_user' => true, 
    69                 'supports' => array( 'comments', 'author' ), 
     69                'supports' => array( 'title', 'excerpt', 'author', 'custom-fields' ), 
    7070        ) ); 
    7171 
    7272        register_post_type( 'revision', array( 
  • wp-admin/edit-form-advanced.php

     
    334334 
    335335</div> 
    336336<?php } ?> 
     337 
     338<?php if ( post_type_supports($post_type, 'image_editor') ) { ?> 
     339 
     340<div id="postdivrich" class="postarea"> 
     341        <p style="width:100%; padding: 40px 0; text-align: center; border: 1px solid #ddd; ">This would be the awesome new image editor!</p> 
     342</div> 
     343 
     344<?php }; ?> 
     345 
    337346</div><!-- /post-body-content --> 
    338347 
    339348<div id="postbox-container-1" class="postbox-container">