Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#17705 closed enhancement (fixed)

Admin bar tweaks

Reported by: nacin's profile nacin Owned by: nacin's profile nacin
Milestone: 3.2 Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

Per a conversation with Jane, I've cooked up a small series of tweaks to the Admin Bar.

There's actually very little code churn -- I just spaced some things out for readability purposes. This patch:

  • Removes 'Dashboard' from the initial dropdown, and makes it a first-level item.
  • The 'Dashboard' link becomes 'View Site' when in the admin.
  • The 'Edit X' links for posts/pages and tags/categories become 'View X' when in the admin.

In support of this patch, there were two other changes made:

  • API: A view_item string has been added for taxonomies.
  • UI: A 'View' action link was added to the tags/categories list tables, appended to the end as it is for posts/pages. Basically, we just never had View links, so if we're to add them to the admin bar, they should go here too.

Attachments (1)

17705.diff (6.2 KB) - added by nacin 14 years ago.

Download all attachments as: .zip

Change History (9)

#1 @nacin
14 years ago

  • Keywords 2nd-opinion added

Also closed #17553 as a duplicate as this patch does more.

We can cherry pick from this for 3.2, commit the whole thing, or punt to 3.3 -- the point of these changes were to further the original task of a more useful admin bar, but more so to help deal with the usability around some changes to the admin UI.

@nacin
14 years ago

#2 @nacin
14 years ago

Also of note, the current_screen object is identical on edit-tags.php and edit-tags.php?action=edit. I resorted to confirming that the $tag global is an object.

#3 @ryan
14 years ago

Looks good and works well in my testing.

#4 @ryan
14 years ago

  • Keywords ux-feedback added

#5 @nacin
14 years ago

  • Keywords 2nd-opinion ux-feedback removed

Sign-off from Jane.

#6 @nacin
14 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In [18194]:

Admin Bar: Add View Site/Dashboard links, 'View X' links in the admin, 'View' action link for terms. New custom taxonomy string: view_item, defaulting to 'View Tag' and View Category'. fixes #17705.

#7 @westi
14 years ago

In [18213]:

Only show the Dashboard link if you are logged in. See #17705.

#8 @nacin
14 years ago

In [18284]:

'Dashboard' should be to the right of 'My Sites' for visual hierarchy reasons. see #17705.

Note: See TracTickets for help on using tickets.