mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Correctly escape theme version numbers when displaying them.
Props collinsinternet. git-svn-id: https://develop.svn.wordpress.org/trunk@32170 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -636,6 +636,9 @@ final class WP_Theme implements ArrayAccess {
|
||||
case 'Tags' :
|
||||
$value = array_filter( array_map( 'trim', explode( ',', strip_tags( $value ) ) ) );
|
||||
break;
|
||||
case 'Version' :
|
||||
$value = strip_tags( $value );
|
||||
break;
|
||||
}
|
||||
|
||||
return $value;
|
||||
|
||||
Reference in New Issue
Block a user