WordPress.org

Make WordPress Core

Ticket #15743: 15743.diff

File 15743.diff, 646 bytes (added by scribu, 7 years ago)
  • wp-includes/functions.php

     
    42204220        if ( $context != '' ) {
    42214221                $extra_headers = apply_filters( "extra_{$context}_headers", array() );
    42224222
    4223                 $extra_headers = array_flip( $extra_headers );
    4224                 foreach( $extra_headers as $key=>$value ) {
    4225                         $extra_headers[$key] = $key;
    4226                 }
     4223                $extra_headers = array_combine( $extra_headers, $extra_headers );
     4224
    42274225                $all_headers = array_merge( $extra_headers, (array) $default_headers );
    42284226        } else {
    42294227                $all_headers = $default_headers;