Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#19221 closed defect (bug) (fixed)

My Sites menu has invalid markup

Reported by: wpmuguru Owned by: nacin
Priority: normal Milestone: 3.3
Component: Multisite Version: 3.3
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

The My Sites menu currently has a <ul> within a <ul> and no intervening <li> when the user is a super admin.

Attachments (2)

19221.diff​ (433 bytes ) - added by wpmuguru 15 years ago.
19221.2.diff​ (472 bytes ) - added by wpmuguru 15 years ago.
ignore 19221.diff

Download all attachments as: .zip

Change History (7)

@wpmuguru
15 years ago

ignore 19221.diff

#1 @wpmuguru
15 years ago

The first patch fixed the issue for super admins but created an issue with non-super admins.

#2 @nacin
15 years ago

Looks like 19221.2.diff​ has a logic inversion — we want sites to be secondary if there is a "Network Admin" menu, so secondary => true should be for super admins.

That said, [19230] forgot to force secondary items to primary items when there are no primary items. I'm going to commit a change for that as well.

#3 @nacin
15 years ago

  • Owner set to nacin
  • Resolution → fixed
  • Status new → closed

In [19235]:

Show sites in the 'My Sites' menu as secondary items only when the user is a super admin and therefore has a primary menu item (Network Admin). props wpmuguru, fixes #19221.

#4 @nacin
15 years ago

In [19236]:

Promote secondary admin bar items to primary if there are no primary items at time of render. see #19136, #19221.

#5 @SergeyBiryukov
15 years ago

  • Milestone Awaiting Review → 3.3
Note: See TracTickets for help on using tickets.