[wp-trac] [WordPress Trac] #22641: Request: include post_id on media_send_to_editor filter call in wp_ajax_send_attachment_to_editor

WordPress Trac noreply at wordpress.org
Sun Dec 2 15:37:54 UTC 2012


#22641: Request: include post_id on media_send_to_editor filter call in
wp_ajax_send_attachment_to_editor
-------------------------+------------------------------
 Reporter:  adrianhardy  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:  2.6
 Severity:  minor        |  Resolution:
 Keywords:               |
-------------------------+------------------------------
Changes (by nacin):

 * version:  trunk => 2.6


Comment:

 Right, so in 3.4, media_send_to_editor did not receive a post_id.
 Individuals checked `$_POST['post_id']` manually in their callbacks. I
 think this is a good potential change — obviously, it is much better to
 use a passed argument, than to infer from global state. But, this hook as
 been there untouched since 2.6 or so, so I'm not inclined to change it for
 3.5.

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


More information about the wp-trac mailing list