diff --git a/src/wp-includes/widgets.php b/src/wp-includes/widgets.php index 40bf54c528..229b5ec29b 100644 --- a/src/wp-includes/widgets.php +++ b/src/wp-includes/widgets.php @@ -814,6 +814,12 @@ function register_sidebar($args = array()) { 'after_title' => "\n", ); + if ( current_theme_supports( 'html5', 'widgets' ) ) { + $defaults['before_widget'] = '\n"; + $defaults['before_title'] = '