WordPress.org

Make WordPress Core

Ticket #20897: 20897.3.diff

File 20897.3.diff, 671 bytes (added by georgestephanis, 6 years ago)
  • 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 ] ) ) continue;
     3119                $theme_data[ $extra_header ] = $theme->get( $extra_header );
     3120        }
     3121
    31173122        return $theme_data;
    31183123}
    31193124