[wp-trac] [WordPress Trac] #21391: Move attachment editing (media.php) to use standard post type UI

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 25 22:22:59 UTC 2012


#21391: Move attachment editing (media.php) to use standard post type UI
----------------------------+------------------
 Reporter:  nacin           |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.5
Component:  Media           |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+------------------

Comment (by martythornley):

 I know this is early but I started messing with this a little and see a
 couple initial things...

 It is easy enough to change the edit link to use the standard post types
 editor. But you get the standard editor, which doesn't do anything for an
 attachment. I see a couple ways to change that within
 advanced_edit_form.php (lines  but not sure what makes more sense...

 1) Within the <?php if ( post_type_supports($post_type, 'editor') ) { ?>
 section, you could add something so that attachments use their own thing,
 or

 2) You could add a new post_type_supports for attachment_editor? Then as
 you register the attachment post_type, you could say that it supports the
 media_editor?

 Maybe there is another way but the idea of being able to register a post
 type and allow it to use a built in image editor sounds kind of awesome.
 :)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21391#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list