WordPress.org

Make WordPress Core

Ticket #30556: new-widget-container.diff

File new-widget-container.diff, 572 bytes (added by LeoPeo, 5 years ago)

New widget container (<div> instead of <li>)

  • src/wp-includes/widgets.php

    diff --git a/src/wp-includes/widgets.php b/src/wp-includes/widgets.php
    index d113659..4343486 100644
    a b function register_sidebar($args = array()) { 
    712712                'id' => "sidebar-$i",
    713713                'description' => '',
    714714                'class' => '',
    715                 'before_widget' => '<li id="%1$s" class="widget %2$s">',
    716                 'after_widget' => "</li>\n",
     715                'before_widget' => '<div id="%1$s" class="widget %2$s">',
     716                'after_widget' => "</div>\n",
    717717                'before_title' => '<h2 class="widgettitle">',
    718718                'after_title' => "</h2>\n",
    719719        );