WordPress.org

Make WordPress Core

Ticket #31643: registered_sidebar_wrap_class_filter.diff

File registered_sidebar_wrap_class_filter.diff, 478 bytes (added by silb3r, 7 years ago)

Add the "registered_sidebar_wrap_class" filter to enable filtering of sidebars' $wrap_class

  • src/wp-admin/widgets.php

     
    415415        if ( $i > 0 )
    416416                $wrap_class .= ' closed';
    417417
     418        $wrap_class = apply_filters( 'registered_sidebar_wrap_class', $wrap_class, $i, $theme_sidebars, $sidebar, $registered_sidebar );
     419
    418420        if ( $split && $i == $split ) {
    419421                ?>
    420422                </div><div class="sidebars-column-2">