Widgets: Allow basic inline tags in `wp_sidebar_description()`.

The customizer has allowed HTML in sidebar descriptions since adding support for sidebars. This change ensures that basic HTML is also allowed for them in the widgets admin screen.

Fixes #42608.


git-svn-id: https://develop.svn.wordpress.org/trunk@43275 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Felix Arntz 2018-05-15 16:54:12 +00:00
parent f822373476
commit 2c4326cff1
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ function wp_sidebar_description( $id ) {
global $wp_registered_sidebars;
if ( isset( $wp_registered_sidebars[ $id ]['description'] ) ) {
return esc_html( $wp_registered_sidebars[ $id ]['description'] );
return wp_kses( $wp_registered_sidebars[ $id ]['description'], 'sidebar_description' );
}
}