Files
wordpress-develop/src/wp-includes
Weston Ruter 2e2ea4876b Customize: Improve alignment of WP_Customize_Nav_Menu_Item_Setting::sanitize() behavior with wp_update_nav_menu_item().
* Apply `title_save_pre`, `excerpt_save_pre`, and `content_save_pre` filters on a nav menu item's `title`, `attr_title`, and `description` properties respectively. This ensures that arbitrary markup can be supplied if the user has `unfiltered_html` cap, and for these fields to have markup stripped if not.
* Ensure a nav menu item's `post_status` is sanitized as `publish` or `draft` using the same conditions as `wp_update_nav_menu_item()`.
* Align `WP_Customize_Nav_Menu_Item_Setting::sanitize()` behavior for sanitizing `position` to be the same as `wp_update_nav_menu_item()`.
* Also apply `nav_menu_attr_title` and `nav_menu_description` filters in `WP_Customize_Nav_Menu_Item_Setting::value_as_wp_post_nav_menu_item()` to ensure that previewing markup entered into menu item description will preview the same way as when the nav menu item is saved.
* Add unit tests.

Fixes #32812.


git-svn-id: https://develop.svn.wordpress.org/trunk@35580 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 00:47:55 +00:00
..
2015-07-23 10:02:54 +00:00
2015-06-28 00:16:17 +00:00
2015-06-28 15:26:41 +00:00
2015-09-26 07:03:17 +00:00
2015-09-22 13:43:55 +00:00
2015-10-08 19:28:14 +00:00
2015-10-07 03:01:27 +00:00
2015-06-16 20:00:15 +00:00
2015-10-08 19:28:14 +00:00
2015-10-10 01:58:37 +00:00
2015-09-22 13:02:25 +00:00