Weston Ruter
e11fd98ec6
Customize: Fix regressions and harden implementation of selective refresh for nav menus.
...
* Request full refresh if there are nav menu instances that lack partials for a changed setting.
* Restore `WP_Customize_Nav_Menus::$preview_nav_menu_instance_args` and `WP_Customize_Nav_Menus::export_preview_data()` from 4.3, and keeping a tally of all `wp_nav_menu()` calls regardless of whether they can use selective refresh.
* Ensure that all instances of `wp_nav_menu()` are tallied, regardless of whether they are made during the initial preview call or during subsequent partial renderings. Export `nav_menu_instance_args` with each partial rendering response just as they are returned when rendering the preview as a whole.
* Fix issues with Custom Menu widget where nav menu items would fail to render when switching between menus when a menu lacked items to begin with.
* Make sure the fallback behavior is invoked when the partial is no longer associated with a menu.
* Do fallback behavior to refresh preview when all menu items are removed from a menu.
Follows [36586].
See #27355 .
Fixes #35362 .
Built from https://develop.svn.wordpress.org/trunk@36889
git-svn-id: http://core.svn.wordpress.org/trunk@36856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 00:09:26 +00:00
..
2016-02-18 08:21:28 +00:00
2016-03-05 22:01:27 +00:00
2016-03-04 23:47:26 +00:00
2016-02-23 16:55:27 +00:00
2016-03-09 00:09:26 +00:00
2015-11-20 04:34:25 +00:00
2016-03-08 17:15:27 +00:00
2016-02-24 04:20:25 +00:00
2015-10-24 22:45:25 +00:00
2016-02-24 20:57:26 +00:00
2016-02-23 01:02:26 +00:00
2016-03-07 12:56:28 +00:00
2016-01-28 03:51:26 +00:00
2015-12-18 23:01:28 +00:00
2016-02-25 12:53:27 +00:00
2016-01-09 07:33:27 +00:00
2016-02-07 01:27:26 +00:00
2016-01-13 20:16:29 +00:00
2016-02-04 14:50:26 +00:00
2016-02-26 09:27:26 +00:00
2016-02-28 01:46:26 +00:00
2015-12-31 04:06:26 +00:00
2015-12-06 21:23:25 +00:00
2016-03-08 05:58:26 +00:00
2015-12-24 01:59:26 +00:00
2015-12-24 01:59:26 +00:00
2015-12-14 17:47:30 +00:00
2015-12-18 18:38:25 +00:00
2015-12-14 17:50:26 +00:00
2015-12-16 16:36:28 +00:00
2016-01-05 16:35:26 +00:00
2016-03-03 15:58:27 +00:00
2016-03-03 16:02:27 +00:00
2016-01-17 15:00:27 +00:00
2016-02-24 18:28:28 +00:00
2016-03-04 23:47:26 +00:00
2016-03-09 00:09:26 +00:00
2016-03-02 23:10:26 +00:00
2015-10-24 18:21:25 +00:00
2016-02-23 19:18:27 +00:00
2016-03-04 02:02:26 +00:00
2016-02-28 19:00:27 +00:00
2015-11-19 05:02:27 +00:00
2015-12-23 06:31:27 +00:00
2016-01-28 03:35:27 +00:00
2015-12-14 23:54:26 +00:00
2015-10-31 20:50:25 +00:00
2016-03-04 17:37:27 +00:00
2016-02-22 22:19:26 +00:00
2016-02-26 17:10:26 +00:00
2016-02-17 22:58:26 +00:00
2016-01-18 02:59:27 +00:00
2015-11-17 11:27:29 +00:00
2016-01-15 07:56:26 +00:00
2015-12-14 20:05:27 +00:00
2016-01-28 03:35:27 +00:00
2016-02-07 02:13:26 +00:00
2015-12-14 02:50:27 +00:00
2016-01-10 01:26:25 +00:00
2016-02-26 17:23:26 +00:00
2016-01-28 03:51:26 +00:00
2016-01-28 03:51:26 +00:00
2015-12-12 01:06:29 +00:00
2016-02-16 23:20:26 +00:00
2016-02-24 00:55:26 +00:00
2016-02-25 12:53:27 +00:00
2016-03-06 19:50:27 +00:00
2016-03-06 19:50:27 +00:00
2016-03-06 19:50:27 +00:00
2016-03-01 02:14:25 +00:00
2016-02-24 00:49:26 +00:00
2016-02-07 01:18:27 +00:00
2016-01-14 17:30:28 +00:00
2015-12-06 21:50:25 +00:00
2015-12-22 13:02:29 +00:00
2016-02-22 23:15:27 +00:00
2016-02-28 19:32:25 +00:00
2016-02-27 21:22:25 +00:00
2016-03-07 10:00:29 +00:00
2015-11-04 17:47:25 +00:00
2015-11-04 17:47:25 +00:00
2016-01-09 01:45:26 +00:00
2016-03-03 05:17:26 +00:00
2016-03-08 06:00:26 +00:00
2016-02-27 20:34:29 +00:00
2016-02-27 20:34:29 +00:00
2016-03-03 19:56:26 +00:00
2016-03-06 15:55:26 +00:00
2016-02-07 00:18:26 +00:00
2016-02-28 20:43:26 +00:00
2016-03-07 12:56:28 +00:00
2016-02-18 16:43:27 +00:00
2015-12-16 18:08:26 +00:00
2015-11-07 16:12:27 +00:00
2016-03-08 17:43:25 +00:00
2016-02-17 22:58:26 +00:00
2016-01-28 03:35:27 +00:00
2016-02-29 03:17:26 +00:00
2016-02-26 09:16:26 +00:00
2016-03-03 09:12:27 +00:00
2015-11-18 17:42:26 +00:00
2016-01-25 21:51:26 +00:00
2015-12-24 00:21:27 +00:00
2016-03-08 18:25:26 +00:00
2016-01-09 03:12:26 +00:00
2016-02-23 22:26:28 +00:00
2016-03-02 03:41:28 +00:00
2016-01-25 18:58:27 +00:00
2016-03-03 19:56:26 +00:00
2016-02-26 09:25:26 +00:00
2016-02-24 22:12:25 +00:00
2016-03-03 09:55:26 +00:00
2016-02-24 00:44:59 +00:00
2016-02-28 02:13:25 +00:00
2016-03-08 16:04:29 +00:00
2016-01-09 01:45:26 +00:00
2015-12-26 04:46:28 +00:00
2016-02-25 21:25:25 +00:00
2016-03-07 19:33:26 +00:00
2016-03-07 19:33:26 +00:00
2016-02-16 22:12:27 +00:00
2016-02-23 16:17:26 +00:00
2016-02-25 12:53:27 +00:00
2016-03-03 03:25:26 +00:00
2016-03-09 00:09:26 +00:00
2016-02-25 12:53:27 +00:00
2016-03-04 00:03:27 +00:00