From f6e22576ad92642dd6a90cb5454fbfc61cf6c525 Mon Sep 17 00:00:00 2001 From: Tim Kaye Date: Sun, 10 Sep 2023 14:43:50 -0400 Subject: [PATCH] Deatils and summary tags added to class-wp-customize-nav-menus.php This replicates the changes made to the regular `nav menus` screen in that it adds the `details` and `summary` tags to the Add Menus section in the Customizer. This change both improves accessibility and enables the `accordion` script to be removed. --- .../class-wp-customize-nav-menus.php | 119 +++++++++--------- 1 file changed, 56 insertions(+), 63 deletions(-) diff --git a/src/wp-includes/class-wp-customize-nav-menus.php b/src/wp-includes/class-wp-customize-nav-menus.php index 92a3b594ff..75eebd6b71 100644 --- a/src/wp-includes/class-wp-customize-nav-menus.php +++ b/src/wp-includes/class-wp-customize-nav-menus.php @@ -1141,7 +1141,7 @@ public function print_templates() { */ public function available_items_template() { ?> -
+ -
- -
- - - cap->create_posts ) && current_user_can( $post_type_obj->cap->publish_posts ) ) : ?> -
- - - -
+
  • +
    + + + + +
    + + + cap->create_posts ) && current_user_can( $post_type_obj->cap->publish_posts ) ) : ?> +
    + + + +
    + - -
      -
      -
    • +
        +
        + + -
        - -
        - - - -

        - - - - -

        -
        -
        +
      • +
        + + + +
        + + + +

        + + + + +

        +
        +
        +