[wp-trac] [WordPress Trac] #23681: jQuery 1.9 doesn't like leading whitespace from wp_ajax_add_menu_item

WordPress Trac noreply at wordpress.org
Fri Jul 5 21:16:04 UTC 2013


#23681: jQuery 1.9 doesn't like leading whitespace from wp_ajax_add_menu_item
--------------------------+--------------------
 Reporter:  csixty4       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.6
Component:  Menus         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------

Comment (by ocean90):

 [attachment:23681.patch] calls `$.parseHTML` on custom fields too. Here we
 get an array with two DOM nodes, the first one is an empty line, means
 text. So we have to pass the second index to jQuery.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/23681#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list