Make WordPress Core


Ignore:
Timestamp:
06/11/2012 05:30:57 PM (13 years ago)
Author:
westi
Message:

Restore the 'extra_theme_headers' filter in the deprecated get_theme_data function so that plugins/themes using this function can still access their extra headers.

Fixes #20897 props nacin, georgestephanis, SergeyBiryukov.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-theme.php

    r20945 r21050  
    564564        $value = $this->get( $header );
    565565
    566         if ( empty( $value ) || ! $this->load_textdomain() )
     566        if ( $translate && ( empty( $value ) || ! $this->load_textdomain() ) )
    567567            $translate = false;
    568568
Note: See TracChangeset for help on using the changeset viewer.