Changeset 38421
- Timestamp:
- 08/28/2016 05:30:29 PM (8 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r38411 r38421 2862 2862 * @access private 2863 2863 * 2864 * @param string $message Optional. Response to print. Default empty. 2865 */ 2866 function _ajax_wp_die_handler( $message = '' ) { 2864 * @param string $message Error message. 2865 * @param string $title Optional. Error title (unused). Default empty. 2866 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 2867 */ 2868 function _ajax_wp_die_handler( $message, $title = '', $args = array() ) { 2869 $defaults = array( 2870 'response' => 200, 2871 ); 2872 $r = wp_parse_args( $args, $defaults ); 2873 2874 if ( ! headers_sent() ) { 2875 status_header( $r['response'] ); 2876 } 2867 2877 if ( is_scalar( $message ) ) 2868 2878 die( (string) $message ); -
trunk/src/wp-includes/pluggable.php
r38420 r38421 1109 1109 if ( $die && false === $result ) { 1110 1110 if ( wp_doing_ajax() ) { 1111 wp_die( -1 );1111 wp_die( -1, 403 ); 1112 1112 } else { 1113 1113 die( '-1' );
Note: See TracChangeset
for help on using the changeset viewer.