diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 400161d8e7..8ee93b4746 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -3293,7 +3293,8 @@ function _ajax_wp_die_handler( $message, $title = '', $args = array() ) { list( $message, $title, $r ) = _wp_die_process_input( $message, $title, $args ); - if ( ! headers_sent() && null !== $r['response'] ) { + // This is intentional. For backward-compatibility, support passing null here. + if ( ! headers_sent() && null !== $args['response'] ) { status_header( $r['response'] ); }