WordPress.org

Make WordPress Core

Ticket #17060: 17060-cleanup.diff

File 17060-cleanup.diff, 646 bytes (added by strider72, 3 years ago)
  • wp-includes/functions.php

     
    43574357 
    43584358        if ( $context != '' ) { 
    43594359                $extra_headers = apply_filters( "extra_{$context}_headers", array() ); 
    4360  
    4361                 $extra_headers = array_flip( $extra_headers ); 
    4362                 foreach( $extra_headers as $key=>$value ) { 
    4363                         $extra_headers[$key] = $key; 
    4364                 } 
     4360                $extra_headers = array_combine( $extra_headers, $extra_headers ); 
    43654361                $all_headers = array_merge( $extra_headers, (array) $default_headers ); 
    43664362        } else { 
    43674363                $all_headers = $default_headers;