[wp-trac] [WordPress Trac] #22186: Backwards compatibility for admin/includes/media.php hooks

WordPress Trac noreply at wordpress.org
Tue Nov 27 06:23:11 UTC 2012


#22186: Backwards compatibility for admin/includes/media.php hooks
--------------------------+------------------
 Reporter:  nacin         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  low           |   Milestone:  3.5
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------

Comment (by nacin):

 A little under 30 instances of get_media_item_args in plugins. All but 1
 force send to on. Most of those (all but five) using one of two functions
 from a plugin options/form framework (the methods are cmb_force_send and
 allow_img_insertion).

 The only one that is using get_media_item_args() for something other than
 send = true, is for send = false, to implement some kind of post thumbnail
 functionality. This plugin was recipe-schema. I activated it, and after
 figuring out how to use it (you need to create a recipe, then add that
 recipe to a post), I was able to trigger the old thickbox dialog and
 successfully attach a thumbnail.

 So, it seems get_media_item_args shall die with the old dialog.

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


More information about the wp-trac mailing list