[wp-trac] [WordPress Trac] #22582: Backward compatibility for the library query in the new "add media" modal

WordPress Trac noreply at wordpress.org
Sun Nov 25 09:47:47 UTC 2012


#22582: Backward compatibility for the library query in the new "add media" modal
-----------------------------+--------------------------
 Reporter:  Chouby           |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Media
  Version:  trunk            |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 In WP 3.4, when querying the database to populate the media library in the
 "upload/insert" media modal, {{{$_REQUEST['post_id']}}} contains the id of
 the post currently edited. This allows plugins to filter the media in the
 library based on informations contained in the post currently edited
 (using the 'parse_query' filter).

 In WP 3.5 RC1 with the new "Add media" modal, {{{$_REQUEST}}} contains
 only two indexes 'action' and 'query'. So far I did not find a way to get
 the id of the post currently edited.

 See also #22186

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22582>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list