Make WordPress Core

Opened 6 years ago

Last modified 4 weeks ago

#41104 accepted enhancement

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

Reported by: johnjamesjacoby's profile johnjamesjacoby Owned by: joedolson's profile joedolson
Milestone: 6.5 Priority: normal
Severity: normal Version: 3.0
Component: Toolbar Keywords: has-patch needs-testing 2nd-opinion
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 (9)

6 years ago

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

#1 @sabernhardt
4 years ago

  • Keywords close added

Related/duplicate: #49040

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

#2 @SergeyBiryukov
4 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
4 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.

#6 @joedolson
7 weeks ago

  • Milestone changed from Awaiting Review to 6.5
  • Owner set to joedolson
  • Status changed from reopened to accepted

This seems like a totally reasonable addition; seems like it should just be done. Slating for 6.5, because I think it should be done.

#7 @rajinsharwar
4 weeks ago

  • Keywords 2nd-opinion added

I am not sure if this will be really necessary, but my opinion will be to Add a "Add New" option on the Network Admin dashboard, and show there, the options of adding a new "User", and a new "Site". Because, generally in a subsite's dashboard, network admins don't generally create sites. They work to administer settings related to that specific subsite. I am not really sure if adding a "Site" option would be helpful for the users.

Even if we consider adding the "Site" for the Add New option for the subsites dashboard, I believe we should add an "Add new" option in the admin toolbar for the Network admin dash. (This will be a part of another ticket though, just proposing and asking for feedback.)

Note: See TracTickets for help on using tickets.