Make WordPress Core


Ignore:
Timestamp:
05/15/2018 04:54:12 PM (7 years ago)
Author:
flixos90
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets.php

    r42843 r43275  
    427427
    428428    if ( isset( $wp_registered_sidebars[ $id ]['description'] ) ) {
    429         return esc_html( $wp_registered_sidebars[ $id ]['description'] );
     429        return wp_kses( $wp_registered_sidebars[ $id ]['description'], 'sidebar_description' );
    430430    }
    431431}
Note: See TracChangeset for help on using the changeset viewer.