# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- wp-includes/functions.php
+++ wp-includes/functions.php
@@ -2660,41 +2660,12 @@
 	if ( function_exists( 'apply_filters' ) ) {
 		$function = apply_filters( 'wp_die_handler', '_default_wp_die_handler');
 	}else {
-            if(defined('DOING_AJAX') && DOING_AJAX)
-                $function = '_ajax_wp_die_handler';            
-            else
 		$function = '_default_wp_die_handler';
 	}        
+
 	call_user_func( $function, $message, $title, $args );
 }
-function _ajax_die_handler_filter() { 
-    return '_ajax_wp_die_handler'; 
-}
-/**
- * Kill WordPress execution and send AJAX response with error message.
- *
- * This is AJAX-version of the default handler for wp_die
- *
- * @since 3.0.0
- * @access private
- *
- * @param string $message Error message.
- * @param string $title Error title.
- * @param string|array $args Optional arguements to control behaviour.
- */
-function _ajax_wp_die_handler( $message, $title = '', $args = array() ) {
 
-	$defaults = array( 'response' => 500 );
-	$r = wp_parse_args($args, $defaults);
-	$have_gettext = function_exists('__');        	
-        $resp   =   new WP_Ajax_Response( array(
-			'what' => 'autosave',
-			'id' => $message			
-		) );
-	$resp->send();
-	die();
-}
-
 /**
  * Kill WordPress execution and display HTML message with error message.
  *
