Make WordPress Core


Ignore:
Timestamp:
08/31/2016 04:30:48 PM (9 years ago)
Author:
wonderboymusic
Message:

Bootstrap: do not go gentle into that good night r38411, r38412, and parts of r38389.

See #36335.

File:
1 edited

Legend:

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

    r38469 r38470  
    564564
    565565    //TODO: Tidy this ghetto code up and make the debug code optional
     566    include_once( ABSPATH . WPINC . '/class-IXR.php' );
     567
    566568    $post_links = array();
    567569
     
    28642866 * @access private
    28652867 *
    2866  * @param string       $message Error message. 
    2867  * @param string       $title   Optional. Error title (unused). Default empty. 
    2868  * @param string|array $args    Optional. Arguments to control behavior. Default empty array. 
    2869  */ 
    2870 function _ajax_wp_die_handler( $message, $title = '', $args = array() ) { 
    2871     $defaults = array( 
    2872         'response' => 200, 
    2873     ); 
    2874     $r = wp_parse_args( $args, $defaults ); 
    2875 
    2876     if ( ! headers_sent() ) { 
    2877         status_header( $r['response'] ); 
     2868 * @param string       $message Error message.
     2869 * @param string       $title   Optional. Error title (unused). Default empty.
     2870 * @param string|array $args    Optional. Arguments to control behavior. Default empty array.
     2871 */
     2872function _ajax_wp_die_handler( $message, $title = '', $args = array() ) {
     2873    $defaults = array(
     2874        'response' => 200,
     2875    );
     2876    $r = wp_parse_args( $args, $defaults );
     2877
     2878    if ( ! headers_sent() ) {
     2879        status_header( $r['response'] );
    28782880    }
    28792881    if ( is_scalar( $message ) )
Note: See TracChangeset for help on using the changeset viewer.