--- a/wp/wp-includes/customize/class-wp-customize-nav-menus-panel.php Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-includes/customize/class-wp-customize-nav-menus-panel.php Fri Sep 05 18:40:08 2025 +0200
@@ -69,7 +69,12 @@
?>
<li class="panel-meta customize-info accordion-section <# if ( ! data.description ) { #> cannot-expand<# } #>">
<button type="button" class="customize-panel-back" tabindex="-1">
- <span class="screen-reader-text"><?php _e( 'Back' ); ?></span>
+ <span class="screen-reader-text">
+ <?php
+ /* translators: Hidden accessibility text. */
+ _e( 'Back' );
+ ?>
+ </span>
</button>
<div class="accordion-section-title">
<span class="preview-notice">
@@ -79,10 +84,20 @@
?>
</span>
<button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false">
- <span class="screen-reader-text"><?php _e( 'Help' ); ?></span>
+ <span class="screen-reader-text">
+ <?php
+ /* translators: Hidden accessibility text. */
+ _e( 'Help' );
+ ?>
+ </span>
</button>
<button type="button" class="customize-screen-options-toggle" aria-expanded="false">
- <span class="screen-reader-text"><?php _e( 'Menu Options' ); ?></span>
+ <span class="screen-reader-text">
+ <?php
+ /* translators: Hidden accessibility text. */
+ _e( 'Menu Options' );
+ ?>
+ </span>
</button>
</div>
<# if ( data.description ) { #>
@@ -98,27 +113,4 @@
<li class="customize-control-title customize-section-title-nav_menus-heading"><?php _e( 'Menus' ); ?></li>
<?php
}
-
- /**
- * Checks required user capabilities and whether the theme has the
- * feature support required by the panel.
- *
- * @since 5.9.0
- *
- * @return bool False if theme doesn't support the panel or the user doesn't have the capability.
- */
- public function check_capabilities() {
- /*
- * WP_Customize_Panel::$theme_supports only supports checking one
- * theme_supports, so instead we override check_capabilities().
- */
- if (
- ! current_theme_supports( 'menus' ) &&
- ! current_theme_supports( 'widgets' )
- ) {
- return false;
- }
-
- return parent::check_capabilities();
- }
}