Ticket #22552: 22552.patch
File 22552.patch, 997 bytes (added by , 13 years ago) |
---|
-
wp-includes/functions.php
2273 2273 * @param mixed $response Variable (usually an array or object) to encode as JSON, then print and die. 2274 2274 */ 2275 2275 function wp_send_json( $response ) { 2276 nocache_headers(); 2276 2277 @header( 'Content-Type: application/json; charset=' . get_option( 'blog_charset' ) ); 2278 2277 2279 echo json_encode( $response ); 2280 2278 2281 if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) 2279 2282 wp_die(); 2280 2283 else -
wp-includes/js/media-models.js
789 789 } 790 790 }); 791 791 792 }(jQuery)); 793 No newline at end of file 792 // Clean up. Prevents mobile browsers caching 793 $(window).on('unload', function(){ 794 window.wp = null; 795 }); 796 797 }(jQuery));