Changeset 38470 for trunk/src/wp-includes/functions.php
- Timestamp:
- 08/31/2016 04:30:48 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r38469 r38470 564 564 565 565 //TODO: Tidy this ghetto code up and make the debug code optional 566 include_once( ABSPATH . WPINC . '/class-IXR.php' ); 567 566 568 $post_links = array(); 567 569 … … 2864 2866 * @access private 2865 2867 * 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 */ 2872 function _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'] ); 2878 2880 } 2879 2881 if ( is_scalar( $message ) )
Note: See TracChangeset
for help on using the changeset viewer.