WordPress.org

Make WordPress Core

Changeset 10626


Ignore:
Timestamp:
02/22/2009 10:09:30 AM (9 years ago)
Author:
westi
Message:

Wrap the apply_filters call in a function_exists check as this can be called before it is defined. See #9205.

File:
1 edited

Legend:

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

    r10619 r10626  
    14781478        'Pragma' => 'no-cache',
    14791479    );
    1480     return apply_filters('nocache_headers', $headers); 
     1480   
     1481    if ( function_exists('apply_filters') ) {
     1482        $headers = apply_filters('nocache_headers', $headers);
     1483    }
     1484    return $headers;
    14811485}
    14821486
Note: See TracChangeset for help on using the changeset viewer.