#41104 closed enhancement (fixed)
Add "Site" to the "New" admin-bar dropdown
Reported by: | johnjamesjacoby | Owned by: | joedolson |
---|---|---|---|
Milestone: | 6.5 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Toolbar | Keywords: | has-patch has-testing-info commit |
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 (6)
Change History (24)
#1
@
5 years ago
- Keywords close added
Related/duplicate: #49040
(I recommend closing this ticket because the other has a patch)
#2
@
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
@
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.
#4
@
3 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
#6
@
11 months 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
@
10 months 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.)
#8
@
8 months ago
- Keywords 2nd-opinion removed
Hi, @rajinsharwar!
There is already an option to add a new site or a new user on the network admin dashboard; the text is "Create a New Site" and "Create a New User", so I'm not sure that what you're proposing would be anything new.
Adding this to the admin bar is intended to give the super admin role a shortcut without needing to first navigate back to the network admin. It just shortens that navigation path when administering a subsite. This can be a frequent action for large networks, so it would be convenient.
Otherwise, if you have an additional proposal, I think that would be best done in a separate ticket, to avoid confusing issues here.
#9
@
8 months ago
- Keywords has-testing-info 2nd-opinion added
Two possible patches, depending on whether we feel the visual separator is necessary. It may be somewhat helpful to differentiate "on this site" and "outside of this site", but I wouldn't consider it crucial.
Opinions appreciated.
Testing instructions:
- On a multisite network, verify that 'Site' is present in the "New" submenu when on either the network admin or a subsite admin.
- Verify that 'Site' is not present if active as a user without permissions to create new sites.
#10
@
8 months ago
The link text could include "network" (such as "Network site" or "Site in network") to help clarify that the link does not relate to the current site.
The proposed top border achieves the visual separation for a secondary item, though I am not fond of how that looks. It could be better with a margin-top
of 4 pixels instead of padding.
For another possibility, the link to add a new site could have an icon such as multisite's three houses.
#11
@
8 months ago
I think that the extra text is not really necessary. While the word 'Site' doesn't explicitly state that it's outside the current site, I think there are two factors that help with that:
1) Anybody with access to this is a network super admin, and should be assumed to understand that
2) adding a new 'site' has no meaningful context on a subsite.
It could run into problems if anybody added a custom post type with the name 'Site', but that seems unlikely.
Adding an icon could give us what we need, though.
#12
@
7 months ago
I totally agree with you @joedolson. I also believe that additional text is not necessary.
#13
@
7 months ago
- Keywords needs-testing removed
I tested both patch and they work fine.
I prefer the approach in 41104.2.diff
. Adding a separator is not mandatory since multisite owners probably know what a new Site is in their context. Plus, it only shows for users who are able to create new sites (admin/super admins).
Also, the separator in the alternate patch looks a bit weird (I think the bottom padding of the "User" item is too small).
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
7 months ago
This ticket was mentioned in PR #6094 on WordPress/wordpress-develop by @joedolson.
7 months ago
#16
Trac ticket: https://core.trac.wordpress.org/ticket/41104
@joedolson commented on PR #6094:
7 months ago
#18
in r57600
This is the dropdown I'm talking about (hard to describe using words)