Make WordPress Core


Ignore:
Timestamp:
11/22/2013 02:33:19 AM (11 years ago)
Author:
dd32
Message:

Themes: Move the escaping of content from JS back to PHP. This allows us to take advantage of the display() WP_Theme method to translate the text properly, and to strip out any HTML tags we don't wish to display. Fixes #26100. See #25948

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/theme.php

    r26282 r26316  
    406406            'screenshot'   => array( $theme->get_screenshot() ), // @todo multiple
    407407            'description'  => $theme->display( 'Description' ),
    408             'author'       => $theme->get( 'Author' ),
    409             'authorURI'    => $theme->get( 'AuthorURI' ),
    410             'version'      => $theme->get( 'Version' ),
    411             'tags'         => $theme->get( 'Tags' ),
     408            'author'       => $theme->display( 'Author' ),
     409            'version'      => $theme->display( 'Version' ),
     410            'tags'         => $theme->display( 'Tags' ),
    412411            'parent'       => $parent,
    413412            'active'       => $slug === $current_theme,
Note: See TracChangeset for help on using the changeset viewer.