WordPress.org

Make WordPress Core

Ticket #35666: 35666.4.diff

File 35666.4.diff, 456 bytes (added by stevenkword, 5 years ago)

Refresh after Changeset 38576

  • src/wp-includes/functions.php

     
    28682868        );
    28692869        $r = wp_parse_args( $args, $defaults );
    28702870
    2871         if ( ! headers_sent() ) {
     2871        if ( ! headers_sent() && ( 0 === ob_get_level() || 0 === ob_get_length() ) ) {
    28722872                status_header( $r['response'] );
    28732873        }
    28742874        if ( is_scalar( $message ) )