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

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 21 23:00:44 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 nacin):

 In [21948]:

 Use the regular post type UI for editing single media items (attachments).
  * Attachments now go through post.php, edit_post(), the like, and have
 show_ui set to true.
  * Taxonomies attached to the media library now appear in the admin menu
 (if show_ui).
  * Editing, cropping, uploading, etc. is still very rough, but mostly
 functional.

 API-wise:
  * New function: get_taxonomies_for_attachments(). Like get_taxonomies(),
 for taxonomies specifically registered against attachments.
  * Brings taxonomy support from the posts list table to the media list
 table. Expect them to converge soon.
  * wp_insert_attachment() now handles taxonomies like wp_insert_post().
 Also expect them to converge soon.
  * New edit_form_after_title hook.

 props helenyhou, ocean90. see #21391.

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


More information about the wp-trac mailing list