[wp-hackers] Wordpress uploader bug, and question

Andrew Nacin wp at andrewnacin.com
Sat Jan 5 04:12:51 UTC 2013


On Fri, Jan 4, 2013 at 10:20 PM, Luke Bryan <lukebryan at sharefaith.com>wrote:
>
> I saw a bug on trac about "Router is null" exception, though it is
> marked fixed. Is this the same bug, or should this be reported as a
> new problem?
> https://core.trac.wordpress.org/ticket/22710


This will be fixed in 3.5.1. https://core.trac.wordpress.org/ticket/22930


> I was also curious whether or not there are any plans for adding a
> filter/hook for function wp_ajax_query_attachments() in
> ajax-actions.php, for adding images/items to the ajax response used by
> the uploader? Or is there a javascript/backbone hook for this type of
> functionality?


You can add things to attachments using the wp_prepare_attachment_for_js
filter. Actually adding items could happen through filtering the query
itself.

Nacin


More information about the wp-hackers mailing list