WordPress.org

Make WordPress Core

Changeset 16093


Ignore:
Timestamp:
10/29/2010 10:39:53 PM (8 years ago)
Author:
nacin
Message:

Move an array cast further down the stack. props filosofo, fixes #13965.

File:
1 edited

Legend:

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

    r16069 r16093  
    16431643
    16441644    if ( function_exists('apply_filters') ) {
    1645         $headers = apply_filters('nocache_headers', $headers);
     1645        $headers = (array) apply_filters('nocache_headers', $headers);
    16461646    }
    16471647    return $headers;
     
    16591659function nocache_headers() {
    16601660    $headers = wp_get_nocache_headers();
    1661     foreach( (array) $headers as $name => $field_value )
     1661    foreach( $headers as $name => $field_value )
    16621662        @header("{$name}: {$field_value}");
    16631663}
Note: See TracChangeset for help on using the changeset viewer.