mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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 ] ),
|
||||
|
||||
Reference in New Issue
Block a user