WordPress.org

Make WordPress Core

Changeset 19911


Ignore:
Timestamp:
02/12/12 19:02:07 (4 years ago)
Author:
nacin
Message:

Make sure we are using the admin-ajax handler when we call wp_die() for WP_Ajax_Response. see #20024.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-ajax-response.php

    r19801 r19911  
    132132            echo $response; 
    133133        echo '</wp_ajax>'; 
    134         wp_die(); 
     134        if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) 
     135            wp_die(); 
     136        else 
     137            die(); 
    135138    } 
    136139} 
Note: See TracChangeset for help on using the changeset viewer.