Make WordPress Core

Ticket #50556: 50556.1.diff

File 50556.1.diff, 1.4 KB (added by itowhid06, 4 years ago)
  • src/wp-admin/includes/ajax-actions.php

    diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php
    index 680a09ff32..0bebccbae7 100644
    a b function wp_ajax_query_themes() { 
    35613561                        );
    35623562                }
    35633563
    3564                 $theme->name        = wp_kses( $theme->name, $themes_allowedtags );
     3564                $theme->name        = wp_specialchars_decode( wp_kses( $theme->name, $themes_allowedtags ) );
    35653565                $theme->author      = wp_kses( $theme->author['display_name'], $themes_allowedtags );
    35663566                $theme->version     = wp_kses( $theme->version, $themes_allowedtags );
    35673567                $theme->description = wp_kses( $theme->description, $themes_allowedtags );
  • src/wp-includes/class-wp-customize-manager.php

    diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php
    index 9832099f91..6878dc05c3 100644
    a b final class WP_Customize_Manager { 
    58515851                                        $update_php
    58525852                                );
    58535853
    5854                                 $theme->name        = wp_kses( $theme->name, $themes_allowedtags );
     5854                                $theme->name        = wp_specialchars_decode( wp_kses( $theme->name, $themes_allowedtags ) );
    58555855                                $theme->version     = wp_kses( $theme->version, $themes_allowedtags );
    58565856                                $theme->description = wp_kses( $theme->description, $themes_allowedtags );
    58575857                                $theme->stars       = wp_star_rating(