[wp-trac] [WordPress Trac] #37901: Multisite admin has duplicate HTML id's for ab-awaiting-mod

WordPress Trac noreply at wordpress.org
Thu Sep 1 00:33:05 UTC 2016


#37901: Multisite admin has duplicate HTML id's for ab-awaiting-mod
---------------------------------------+-----------------------------
 Reporter:  drtonyb                    |      Owner:
     Type:  defect (bug)               |     Status:  new
 Priority:  normal                     |  Milestone:  Awaiting Review
Component:  Administration             |    Version:  4.6
 Severity:  normal                     |   Keywords:
  Focuses:  administration, multisite  |
---------------------------------------+-----------------------------
 In a multisite installation, the admin bar contains duplicate HTML element
 id attribute's for span elements with id="ab-awaiting-mod". Fails HTML
 validation.

 This is associated with site items in the My Sites menu and the Manage
 Comments sub-menu item on each site.

 The problem is located in the file wp-includes/admin-bar.php within the
 function wp_admin_bar_comments_menu() on line 699 where a span element is
 assigned the same id attribute, "ab-waiting-mod", for each site in the
 multisite's My Sites menu.

 HTML id attributes must be unique for a page, so either this id is made
 unique for each site in the My Sites menu (append the site ID or similar)
 or the id is removed (to me it appears that the id may not be of any use
 since it doesn't occur anywhere else in the wordpress core).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37901>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list