Make WordPress Core


Ignore:
Timestamp:
08/31/2012 02:58:51 AM (12 years ago)
Author:
nacin
Message:

Add get-attachment and query-attachments Ajax handlers. props koopersmith. see #21390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r21679 r21681  
    21522152function wp_send_json( $response ) {
    21532153    @header( 'Content-Type: application/json; charset=' . get_option( 'blog_charset' ) );
    2154     echo json_encode( $json );
     2154    echo json_encode( $response );
    21552155    if ( defined( 'DOING_AJAX' ) && DOING_AJAX )
    21562156        wp_die();
Note: See TracChangeset for help on using the changeset viewer.