-
-
Notifications
You must be signed in to change notification settings - Fork 4
Remove Accordion Script #205
Remove Accordion Script #205
Conversation
Following PR #197, there is no longer any need for the accordion script. This PR therefore removes it from the JS folder in `wp-admin` and removes the function calling it from `template.php` in `wp-admin/includes`
Remove more references to the accordion script
…ript Confusingly, there are two accordion scripts in the CP admin: one is part of jQuery UI and should not be removed. This commit reverts its removal.
Good catch, @mattyrob ! I never use the Customizer so never thought of that. I'll see if I can make that work using the |
@mattyrob, I've now taken a look and the menu accordions in the Customizer are working fine for me. Indeed, looking at the
No mention of |
@KTS915 - I'm checked out on this branch and when I get to the screen that I posted a screen grab off before, in Safari and FF, I cannot get the items in the accordion under the "Add Items" to open. By reverting the changes in commit 06e6037, that section works again. I should say that anything currently in the Menu seems to work fine. |
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.
This deletes `display: none;` from the `.accordion-section-content` class and so enables the relevant sections to become visible when toggled using the `details` tag.
@mattyrob Thanks, I managed to replicate the problem and have now pushed some changes to make it work. Specifically, I have added the |
I'm getting wrong icon in customizer. The problem started in #197 but maybe can be fixed in this PR. |
@xxsimoxx - I think I may have fixed the icon issue but was working on develop and pushed it by mistake - so I hope it was right. |
@mattyrob the commit in develop fixed the issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Is there one more things for this is to consider on this PR, removing |
Delete file as it is no longer used
Lol, of course I should have deleted that file! Duh! Now done. |
Following PR #197, there is no longer any need for the accordion script. This PR therefore removes it from the JS folder in
wp-admin
and removes the function calling it fromtemplate.php
inwp-admin/includes
I have tested this on my own localhost test install. I have also grepped to find all instances of the accordion code being used in the admin, but I have found it only in the
template.php
file.