Make WordPress Core

Changeset 44673


Ignore:
Timestamp:
01/21/2019 08:06:24 PM (5 years ago)
Author:
flixos90
Message:

Bootstrap/Load: Fix bug causing AJAX functions to return a 500 when passing a null response to wp_die().

This bug was introduced in [44497].

Props ocean90.
See #45933.

File:
1 edited

Legend:

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

    r44671 r44673  
    32943294    list( $message, $title, $r ) = _wp_die_process_input( $message, $title, $args );
    32953295
    3296     if ( ! headers_sent() && null !== $r['response'] ) {
     3296    // This is intentional. For backward-compatibility, support passing null here.
     3297    if ( ! headers_sent() && null !== $args['response'] ) {
    32973298        status_header( $r['response'] );
    32983299    }
Note: See TracChangeset for help on using the changeset viewer.