Make WordPress Core

Opened 6 years ago

Last modified 2 years ago

#41104 reopened enhancement

Add "Site" to the "New" admin-bar dropdown

Reported by: johnjamesjacoby's profile johnjamesjacoby Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.0
Component: Toolbar Keywords: has-patch needs-testing
Focuses: multisite Cc:


For multisite installations, it would be nice to have a shortcut to create a new site under the "New" admin-bar menu.

  • Every other single-site object is already listed (posts, pages, etc...)
  • "User" is listed, and you can add a new User to a site or install, but from the site dashboard
  • Visually, it should be a separate, secondary menu group (probably at the top?)
  • That secondary group could be used for any "network/global" Add shortcut

Attachments (2)

Screen Shot 2017-06-20 at 1.06.44 PM.png (220.4 KB) - added by johnjamesjacoby 6 years ago.
This is the dropdown I'm talking about (hard to describe using words)
41104.diff (733 bytes) - added by sabernhardt 2 years ago.
single link option based on 49040.diff

Download all attachments as: .zip

Change History (7)

6 years ago

This is the dropdown I'm talking about (hard to describe using words)

#1 @sabernhardt
3 years ago

  • Keywords close added

Related/duplicate: #49040

(I recommend closing this ticket because the other has a patch)

#2 @SergeyBiryukov
3 years ago

  • Component changed from Administration to Toolbar
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #49040.

#3 @johnjamesjacoby
3 years ago

That issue is the duplicate of this one, so this ticket being closed goes against convention.

The chronology is important, because it keeps code changes closely coupled to the initial discovery and discussion.

Unless protocol has changed somewhere I haven’t seen, the patch on that issue should have been brought over here instead.

2 years ago

single link option based on 49040.diff

#4 @sabernhardt
2 years ago

  • Keywords has-patch needs-testing added; 2nd-opinion close removed
  • Milestone set to Awaiting Review
  • Resolution duplicate deleted
  • Status changed from closed to reopened

OK, it would have been better to close the other ticket as duplicate.

I don't know what else would go into a secondary menu group, so I simply iterated on @henry.wright's patch 49040.diff:

  • Changing the link reference to network_admin_url( 'site-new.php' ), as it is in the dashboard widget
  • Moving this additional link outside the foreach loop
  • Moving is_multisite() before the capabilities check, to follow the 'Edit Site' link example
  • Editing the ID to 'add-new-site' to avoid confusion with Jetpack's 'new-site' link
  • Adding to the DocBlock

#5 @sabernhardt
2 years ago

#49040 was marked as a duplicate.

Note: See TracTickets for help on using tickets.