Make WordPress Core

Ticket #8420: wp.patch

File wp.patch, 1.1 KB (added by kapeels, 14 years ago)
  • wp-includes/functions.php

    # This patch file was generated by NetBeans IDE
    # It uses platform neutral UTF-8 encoding and \n newlines.
    old new  
    26652665
    26662666        call_user_func( $function, $message, $title, $args );
    26672667}
    2668 function _ajax_die_handler_filter() {
    2669     return '_ajax_wp_die_handler';
    2670 }
    2671 /**
    2672  * Kill WordPress execution and send AJAX response with error message.
    2673  *
    2674  * This is AJAX-version of the default handler for wp_die
    2675  *
    2676  * @since 3.0.0
    2677  * @access private
    2678  *
    2679  * @param string $message Error message.
    2680  * @param string $title Error title.
    2681  * @param string|array $args Optional arguements to control behaviour.
    2682  */
    2683 function _ajax_wp_die_handler( $message, $title = '', $args = array() ) {
    26842668
    2685         $defaults = array( 'response' => 500 );
    2686         $r = wp_parse_args($args, $defaults);
    2687         $have_gettext = function_exists('__');         
    2688         $resp   =   new WP_Ajax_Response( array(
    2689                         'what' => 'autosave',
    2690                         'id' => $message                       
    2691                 ) );
    2692         $resp->send();
    2693         die();
    2694 }
    2695 
    26962669/**
    26972670 * Kill WordPress execution and display HTML message with error message.
    26982671 *