WordPress/wp-includes/customize
noisysocks a3c8b3ddea Customize: Ensure multiple CSS classes are passed to nav_menu_link_attributes as an array
When multiple CSS classes are added to a menu item, the nav_menu_link_attributes
filter should be called with $item->classes set to an array of CSS class names.

When previewing in the Customizer, however, a single string was being passed to
$item->classes because WP_Customize_Nav_Menu_Item_Setting::preview() bypasses
wp_update_nav_menu_item() and instead uses filter_wp_get_nav_menu_items().

The fix is to make filter_wp_get_nav_menu_items() match what
wp_update_nav_menu_item() does and split the string into an array.

Fixes #43113.
Props dlh.

Built from https://develop.svn.wordpress.org/trunk@49624


git-svn-id: http://core.svn.wordpress.org/trunk@49362 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-17 04:31:08 +00:00
..
class-wp-customize-background-image-control.php
class-wp-customize-background-image-setting.php
class-wp-customize-background-position-control.php
class-wp-customize-code-editor-control.php Docs: Consistently include an empty line between @since tag and @see, @link, or @global, per the documentation standards. 2020-06-16 21:07:14 +00:00
class-wp-customize-color-control.php Docs: Add a @see reference to WP_Customize_Control::__construct() in child class constructors. 2020-02-26 13:30:08 +00:00
class-wp-customize-cropped-image-control.php
class-wp-customize-custom-css-setting.php Docs: Consistently use third-person singular verbs for various filter descriptions, per the documentation standards. 2020-08-11 00:34:08 +00:00
class-wp-customize-date-time-control.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:15:13 +00:00
class-wp-customize-filter-setting.php
class-wp-customize-header-image-control.php Customize: Add / character to <img> tag in WP_Customize_Manager and WP_Customize_Header_Image_Control JS templates. 2020-08-20 13:13:10 +00:00
class-wp-customize-header-image-setting.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
class-wp-customize-image-control.php Docs: Another pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 21:11:05 +00:00
class-wp-customize-media-control.php Coding Standards: Use strict type check for in_array() and array_search() where strings are involved. 2020-04-05 03:02:11 +00:00
class-wp-customize-nav-menu-auto-add-control.php
class-wp-customize-nav-menu-control.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-customize-nav-menu-item-control.php Docs: Add a reference to WP_Customize_Control::__construct() for information on accepted arguments in WP_Customize_Manager::add_control(). 2020-02-25 16:41:07 +00:00
class-wp-customize-nav-menu-item-setting.php Customize: Ensure multiple CSS classes are passed to nav_menu_link_attributes as an array 2020-11-17 04:31:08 +00:00
class-wp-customize-nav-menu-location-control.php
class-wp-customize-nav-menu-locations-control.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-customize-nav-menu-name-control.php
class-wp-customize-nav-menu-section.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:15:13 +00:00
class-wp-customize-nav-menu-setting.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:15:13 +00:00
class-wp-customize-nav-menus-panel.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-customize-new-menu-control.php Docs: Add a @see reference to WP_Customize_Control::__construct() in child class constructors. 2020-02-26 13:30:08 +00:00
class-wp-customize-new-menu-section.php Docs: Use a consistent description for the $manager parameter in various Customizer class constructions. 2020-02-26 15:33:05 +00:00
class-wp-customize-partial.php Docs: Add a reference to WP_Customize_Partial::__construct() for information on accepted arguments in WP_Customize_Selective_Refresh::add_partial(). 2020-07-25 19:40:05 +00:00
class-wp-customize-selective-refresh.php Docs: Add a reference to WP_Customize_Partial::__construct() for information on accepted arguments in WP_Customize_Selective_Refresh::add_partial(). 2020-07-25 19:40:05 +00:00
class-wp-customize-sidebar-section.php
class-wp-customize-site-icon-control.php Docs: Add a @see reference to WP_Customize_Control::__construct() in child class constructors. 2020-02-26 13:30:08 +00:00
class-wp-customize-theme-control.php Themes: Include theme name in available update messages, for better accessibility and consistency with other similar messages. 2020-07-28 11:31:01 +00:00
class-wp-customize-themes-panel.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-customize-themes-section.php Text Changes: Unify various "Back to..." vs. "Return to..." vs. "Go to..." strings. 2020-11-09 10:53:10 +00:00
class-wp-customize-upload-control.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-widget-area-customize-control.php
class-wp-widget-form-customize-control.php