mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@34093 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -416,7 +416,7 @@ class WP_Customize_Nav_Menus_Panel extends WP_Customize_Panel {
|
||||
|
||||
// Display screen options.
|
||||
$screen = WP_Screen::get( 'nav-menus.php' );
|
||||
$screen->render_screen_options();
|
||||
$screen->render_screen_options( array( 'wrap' => false ) );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -475,7 +475,9 @@ class WP_Customize_Nav_Menus_Panel extends WP_Customize_Panel {
|
||||
<# if ( data.description ) { #>
|
||||
<div class="description customize-panel-description">{{{ data.description }}}</div>
|
||||
<# } #>
|
||||
<?php $this->render_screen_options(); ?>
|
||||
<div id="screen-options-wrap">
|
||||
<?php $this->render_screen_options(); ?>
|
||||
</div>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user