WordPress.org

Make WordPress Core

Ticket #30556: 30556.2.diff

File 30556.2.diff, 595 bytes (added by valendesigns, 5 years ago)
  • src/wp-includes/widgets.php

    diff --git src/wp-includes/widgets.php src/wp-includes/widgets.php
    index 229b5ec..6bb4ffc 100644
    function register_sidebar($args = array()) { 
    815815        );
    816816
    817817        if ( current_theme_supports( 'html5', 'widgets' ) ) {
    818                 $defaults['before_widget'] = '<aside id="%1$s" class="widget %2$s">';
    819                 $defaults['after_widget'] = "</aside>\n";
     818                $defaults['before_widget'] = '<section id="%1$s" class="widget %2$s">';
     819                $defaults['after_widget'] = "</section>\n";
    820820                $defaults['before_title'] = '<h2 class="widget-title">';
    821821        }
    822822