mirror of
git://develop.git.wordpress.org/
synced 2025-01-29 18:48:18 +01:00
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. Props flixos90. Merges [43275] to the 4.9 branch. Fixes #42608. git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43302 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2e3e405fdb
commit
eae65cf531
@ -420,8 +420,9 @@ function wp_sidebar_description( $id ) {
|
||||
|
||||
global $wp_registered_sidebars;
|
||||
|
||||
if ( isset($wp_registered_sidebars[$id]['description']) )
|
||||
return esc_html( $wp_registered_sidebars[$id]['description'] );
|
||||
if ( isset( $wp_registered_sidebars[ $id ]['description'] ) ) {
|
||||
return wp_kses( $wp_registered_sidebars[ $id ]['description'], 'sidebar_description' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user