[wp-trac] [WordPress Trac] #17409: Entity & in menu title breaks XHTML 1.0 Strict validation

WordPress Trac wp-trac at lists.automattic.com
Fri May 13 05:44:03 UTC 2011


#17409: Entity & in menu title breaks XHTML 1.0 Strict validation
-------------------------+-------------------------------------------------
 Reporter:  Florat       |      Owner:  Florian
     Type:  defect       |     Status:  new
  (bug)                  |  Milestone:  Awaiting Review
 Priority:  normal       |    Version:  3.1.2
Component:  Menus        |   Keywords:  xmlParseEntityRef,
 Severity:  normal       |  wp_get_nav_menu_items
-------------------------+-------------------------------------------------
 If i use & in the menu title and use $my_menu =
 wp_get_nav_menu_items("my_menu") and loop with foreach($my_menu as
 $menu_item) and connect for building the Menu on $menu_item->title, then
 an & in the page title or on the menu navigation label is convertet to
 a simple &, witch returns the validation error "xmlParseEntityRef: no
 name".

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17409>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list