Opened 6 years ago
Last modified 2 years ago
#41104 reopened enhancement
Add "Site" to the "New" admin-bar dropdown
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Toolbar | Keywords: | has-patch needs-testing |
Focuses: | multisite | Cc: |
Description
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)
Change History (7)
#1
@
3 years ago
- Keywords close added
Related/duplicate: #49040
(I recommend closing this ticket because the other has a patch)
#2
@
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
@
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.
#4
@
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
This is the dropdown I'm talking about (hard to describe using words)