Make WordPress Core


Ignore:
Timestamp:
09/13/2015 06:15:42 AM (9 years ago)
Author:
westonruter
Message:

Customize: Remove redundant aria-label attributes.

Adds an $options array argument to WP_Screen::render_screen_options() to allow the div#screen-options-wrap element to be omitted when wrap value is false.

Props afercia, westonruter.
Fixes #33182.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-panel.php

    r33505 r34093  
    417417        // Display screen options.
    418418        $screen = WP_Screen::get( 'nav-menus.php' );
    419         $screen->render_screen_options();
     419        $screen->render_screen_options( array( 'wrap' => false ) );
    420420    }
    421421
     
    476476            <div class="description customize-panel-description">{{{ data.description }}}</div>
    477477            <# } #>
    478             <?php $this->render_screen_options(); ?>
     478            <div id="screen-options-wrap">
     479                <?php $this->render_screen_options(); ?>
     480            </div>
    479481        </li>
    480482    <?php
Note: See TracChangeset for help on using the changeset viewer.