Make WordPress Core


Ignore:
Timestamp:
01/11/2017 11:09:27 AM (9 years ago)
Author:
ocean90
Message:

Themes: Fix markup for theme name fallbacks.

Merge of [39807] to the 4.1 branch.

Location:
branches/4.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1

  • branches/4.1/src/wp-includes/class-wp-theme.php

    r36189 r39815  
    656656        switch ( $header ) {
    657657            case 'Name' :
    658                 if ( empty( $value ) )
    659                     $value = $this->get_stylesheet();
     658                if ( empty( $value ) ) {
     659                    $value = esc_html( $this->get_stylesheet() );
     660                }
    660661                break;
    661662            case 'Description' :
Note: See TracChangeset for help on using the changeset viewer.