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
class-wp-customize-color-control.php
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
class-wp-customize-image-control.php
class-wp-customize-media-control.php
class-wp-customize-nav-menu-auto-add-control.php
class-wp-customize-nav-menu-control.php
class-wp-customize-nav-menu-item-control.php
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
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
class-wp-customize-new-menu-control.php
class-wp-customize-new-menu-section.php
class-wp-customize-partial.php
class-wp-customize-selective-refresh.php
class-wp-customize-sidebar-section.php
class-wp-customize-site-icon-control.php
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
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
class-wp-widget-area-customize-control.php
class-wp-widget-form-customize-control.php