WordPress.org

Make WordPress Core

Changeset 39810


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

Themes: Fix markup for theme name fallbacks.

Merge of [39807] to the 4.6 branch.

Location:
branches/4.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.6

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

    r38121 r39810  
    721721        switch ( $header ) {
    722722            case 'Name' :
    723                 if ( empty( $value ) )
    724                     $value = $this->get_stylesheet();
     723                if ( empty( $value ) ) {
     724                    $value = esc_html( $this->get_stylesheet() );
     725                }
    725726                break;
    726727            case 'Description' :
Note: See TracChangeset for help on using the changeset viewer.