Make WordPress Core

Ticket #20897: 20897.4.diff

File 20897.4.diff, 1.2 KB (added by nacin, 13 years ago)
  • wp-includes/class-wp-theme.php

     
    563563        public function display( $header, $markup = true, $translate = true ) {
    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
    569569                if ( $translate )
  • wp-includes/deprecated.php

     
    31113111                'Status' => $theme->get('Status'),
    31123112                'Tags' => $theme->get('Tags'),
    31133113                'Title' => $theme->get('Name'),
    3114                 'AuthorName' => $theme->display('Author', false, false),
     3114                'AuthorName' => $theme->get('Author'),
    31153115        );
    31163116
     3117        foreach ( apply_filters( 'extra_theme_headers', array() ) as $extra_header ) {
     3118                if ( ! isset( $theme_data[ $extra_header ] ) )
     3119                        $theme_data[ $extra_header ] = $theme->get( $extra_header );
     3120        }
     3121
    31173122        return $theme_data;
    31183123}
    31193124