WordPress.org

Make WordPress Core

Ticket #12343: register_default_headers.3.diff

File register_default_headers.3.diff, 416 bytes (added by jorbin, 8 years ago)

eliminates is_array() from previous diff and cast both property as arrays

  • wp-includes/theme.php

     
    13571357function register_default_headers( $headers ) {
    13581358        global $_wp_default_headers;
    13591359
    1360         $_wp_default_headers = $headers;
     1360        $_wp_default_headers = array_merge( (array)$_wp_default_headers, (array) $headers);
    13611361}
    13621362
    13631363/**