-
Notifications
You must be signed in to change notification settings - Fork 11
Re-use methods in WP_Customize_Nav_Menus in favor of duplication #56
Re-use methods in WP_Customize_Nav_Menus in favor of duplication #56
Conversation
@westonruter It's not working for me right now. Created a new menu, saved it in a Snapshot: Then went to frontend to Customizer and the menu didn't appear: The menu did appear after Publishing the Snapshot. I double checked that I am using the code with the new filters and tested in on 2 different WP environments. No errors in console. @valendesigns and @westonruter do you both see the Snapshot menus working properly with the pull from |
It seems to me that the reused filters handle the menu too late -- it needs to be filtered when loading the menu for the first time in Customizer, here: https://github.com/xwp/wordpress-develop/blob/master/src/wp-includes/class-wp-customize-nav-menus.php#L510 What am I missing that the re-used filters don't work for me? |
@miina @valendesigns Reported the issue with the Fixed in https://core.trac.wordpress.org/changeset/37981 This will be part of 4.6-beta2 tomorrow (or so). |
@miina @valendesigns fixed another bug in core related to Again, will be part of 4.6-beta2. |
… snapshot values will be added properly
Works for me |
@valendesigns @westonruter It does work for me but actually it seems that this way the menu filters wouldn't be necessary at all to add to It seems that the only thing needed would be this: |
@miina good question, but adding the filters need to get added for the sake of unauthenticated users (or users who lack |
No description provided.