Make WordPress Core

Changeset 39811


Ignore:
Timestamp:
01/11/2017 11:08:39 AM (8 years ago)
Author:
ocean90
Message:

Themes: Fix markup for theme name fallbacks.

Merge of [39807] to the 4.5 branch.

Location:
branches/4.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.5

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

    r36739 r39811  
    719719        switch ( $header ) {
    720720            case 'Name' :
    721                 if ( empty( $value ) )
    722                     $value = $this->get_stylesheet();
     721                if ( empty( $value ) ) {
     722                    $value = esc_html( $this->get_stylesheet() );
     723                }
    723724                break;
    724725            case 'Description' :
Note: See TracChangeset for help on using the changeset viewer.