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

git-svn-id: https://develop.svn.wordpress.org/trunk@26316 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse
2013-11-22 02:33:19 +00:00
parent 36536bce2f
commit f2ce159ded
2 changed files with 9 additions and 14 deletions

View File

@@ -405,10 +405,9 @@ function wp_prepare_themes_for_js( $themes = null ) {
'name' => $theme->display( 'Name' ),
'screenshot' => array( $theme->get_screenshot() ), // @todo multiple
'description' => $theme->display( 'Description' ),
'author' => $theme->get( 'Author' ),
'authorURI' => $theme->get( 'AuthorURI' ),
'version' => $theme->get( 'Version' ),
'tags' => $theme->get( 'Tags' ),
'author' => $theme->display( 'Author' ),
'version' => $theme->display( 'Version' ),
'tags' => $theme->display( 'Tags' ),
'parent' => $parent,
'active' => $slug === $current_theme,
'hasUpdate' => isset( $updates[ $slug ] ),