mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 18:24:31 +00:00
deprecate wp_specialchars() in favor of esc_html(). Encode quotes for esc_html() as in esc_attr(), to improve plugin security.
git-svn-id: https://develop.svn.wordpress.org/trunk@11380 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -193,7 +193,7 @@ function install_themes_dashboard() {
|
||||
foreach ( (array) $feature_list as $feature_name => $features ) {
|
||||
if ( isset($trans[$feature_name]) )
|
||||
$feature_name = $trans[$feature_name];
|
||||
$feature_name = wp_specialchars( $feature_name );
|
||||
$feature_name = esc_html( $feature_name );
|
||||
echo '<div class="feature-name">' . $feature_name . '</div>';
|
||||
|
||||
echo '<ol style="float: left; width: 725px;" class="feature-group">';
|
||||
@@ -201,7 +201,7 @@ function install_themes_dashboard() {
|
||||
$feature_name = $feature;
|
||||
if ( isset($trans[$feature]) )
|
||||
$feature_name = $trans[$feature];
|
||||
$feature_name = wp_specialchars( $feature_name );
|
||||
$feature_name = esc_html( $feature_name );
|
||||
$feature = esc_attr($feature);
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user