[wp-trac] [WordPress Trac] #34111: Menu CSS Classes are saved as comma separated inside the Customiser

WordPress Trac noreply at wordpress.org
Sat Oct 3 00:19:19 UTC 2015


#34111: Menu CSS Classes are saved as comma separated inside the Customiser
------------------------------+--------------------------
 Reporter:  paulwilde         |       Owner:  westonruter
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.3.2
Component:  Customize         |     Version:  4.3.1
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+--------------------------

Comment (by westonruter):

 In [changeset:"34789"]:
 {{{
 #!CommitTicketReference repository="" revision="34789"
 Customize: Fix `nav_menu_item` CSS `classes` array being incorrectly
 presented in input field as comma-delimited list.

 Instead of using `Array.toString()` to serialize an array with comma
 delimiters, explicitly `join` the array using spaces instead. Also ensure
 that `xfn` is handled properly if it ever gets stored as an array.

 Cherry-picks [34788].

 Props tyxla, westonruter.
 Fixes #34111 for 4.3.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34111#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list