WordPress.org

Make WordPress Core

Ticket #18334: widgetIDs.diff

File widgetIDs.diff, 598 bytes (added by sillybean, 7 years ago)

Tiny patch to add IDs to widget wrappers

  • wp-admin/widgets.php

     
    390390        if ( 'wp_inactive_widgets' == $sidebar )
    391391                continue;
    392392        $closed = $i ? ' closed' : ''; ?>
    393         <div class="widgets-holder-wrap<?php echo $closed; ?>">
     393        <div class="widgets-holder-wrap<?php echo $closed; ?>" id="<?php echo esc_attr($sidebar) . '-holder-wrap' ?>">
    394394        <div class="sidebar-name">
    395395        <div class="sidebar-name-arrow"><br /></div>
    396396        <h3><?php echo esc_html( $registered_sidebar['name'] ); ?>