[wp-trac] [WordPress Trac] #21390: Upload/Insert media revamp

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 31 01:56:03 UTC 2012


#21390: Upload/Insert media revamp
----------------------------+--------------------------
 Reporter:  nacin           |       Owner:  koopersmith
     Type:  task (blessed)  |      Status:  accepted
 Priority:  normal          |   Milestone:  3.5
Component:  Media           |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+--------------------------

Comment (by nacin):

 In [21679]:
 {{{
 #!CommitTicketReference repository="" revision="21679"
 Introduce wp_send_json() to json-encode a variable, print it, and die, for
 Ajax requests. Effectively replaces WP_Ajax_Response, which was an XML-
 based response.

 Introduce wp_send_json_success() and wp_send_json_error(), which will
 allow us to fire appropriate done() or fail() callbacks in JS.

 props koopersmith. see #21390.
 }}}

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


More information about the wp-trac mailing list