Opened 2 years ago
Last modified 8 months ago
#56886 new enhancement
Admin facing add site screen missing search engine visibility field
Reported by: | imath | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | Networks and Sites | Keywords: | has-patch changes-requested good-first-bug |
Focuses: | multisite | Cc: |
Description
When a user wants to add a new site on Multisite configs, they can use the site privacy radio buttons, see screenshot below:
/wp-signup.php
But when a super admin wants to add a new site, they have no way to choose this setting during site creation, they need to create a "public" site, then go into the Reading settings to eventually switch to hidden to search engines. In this particular case, a super admin has less power than a regular user :)
/wp-admin/network/site-new.php
The attached patch is adding these missing site privacy radio buttons to let a super admin decide whether a new site should be "public" or not.
patched /wp-admin/network/site-new.php
Attachments (1)
Change History (21)
#3
follow-up:
↓ 7
@
21 months ago
If there is an E2E test suite that runs in multiste mode, it would be great if some tests could be added to ensure Allow search engines to index this site
appears on the relevant page.
@ironprogrammer do you know if such a test suite exits?
This ticket was mentioned in Slack in #core-test by robinwpdeveloper. View the logs.
21 months ago
This ticket was mentioned in PR #3882 on WordPress/wordpress-develop by @audrasjb.
21 months ago
#5
#6
@
21 months ago
- Keywords changes-requested added
The patch needs some updates.
- The markup has changed for this field. See the current markup on the install page. This includes hooks.
- The patch seems to be processing all of the
$blog['meta']
, which goes outside the scope of this ticket. intval()
should be replaced with(int)
.wp_unslash()
shouldn't be necessary here. It's being converted to an integer.
#7
in reply to:
↑ 3
@
21 months ago
Replying to peterwilsoncc:
If there is an E2E test suite that runs in multiste mode, it would be great if some tests could be added to ensure
Allow search engines to index this site
appears on the relevant page.
@ironprogrammer do you know if such a test suite exits?
I don't believe there are any multisite E2E tests. A great idea though 😅
If this option is added to the multisite admin, could it be worded/designed to have better parity with the single site admin?
I realize the current patch is based on what is currently displayed to users on wp-signup.php
, but "Discourage search engines from indexing this site" more accurately reflects this option. It would also simplify the interface if this was a checkbox, rather than radios.
#8
@
21 months ago
- Summary changed from Although users can set a new site's visibility for search engines, the super admin can't :) to Admin facing add site screen missing search engine visibility field
- Version trunk deleted
I think I'd argue that this is an enhancement and not a bug, but I don't feel strongly enough to change the type without others agreeing.
Even though the admin screen shows less to super admins than the front end form, I'm wondering if this was intentional. If I had to guess, I would say that these forms are both intentionally short. But if that conversation did occur, it was likely a really long time ago.
Regardless, it does make sense to me for both locations to match what is available.
This ticket was mentioned in Slack in #core by costdev. View the logs.
20 months ago
#10
@
20 months ago
- Milestone changed from 6.2 to 6.3
- Type changed from defect (bug) to enhancement
This ticket was discussed during the bug scrub. There was agreement by myself, @hellofromTonya and @johnbillion that this is an enhancement, and should be moved to 6.3
.
#11
@
20 months ago
As discussed in the bug scrub, this is more of an enhancement than a bug so I'm bumping it to 6.3. I agree that adding this field to the screen mostly makes sense, but I wouldn't want to add too many fields as that's what the settings screens are for.
#13
@
16 months ago
- Milestone changed from 6.3 to 6.4
Given this enhancement still needs some work and as WP 6.3 beta 1 is going to be released in a couple days, let's move this to milestone 6.4
.
#14
@
14 months ago
@imath and @audrasjb could you please address the changes requested in #comment:6?
There are not so many :)
#15
@
13 months ago
- Keywords good-first-bug added
Because requested changes are not difficult, I am marking this as good first bug.
But we have 9 days until Beta 1 and if someone is interested to see this change in the 6.4, it needs to be done asap or the ticket will be rescheduled to 6.5.
This ticket was mentioned in Slack in #core by oglekler. View the logs.
13 months ago
#17
@
13 months ago
- Milestone changed from 6.4 to 6.5
Because the patch needs a bit of work, and we are in two days before the Beta 1, I am moving this ticket into 6.5. It can go in trunk as soon as the patch will be ready and trunk open again after 6.4 will be branched out.
#18
@
9 months ago
Hello all, I am actively working on updating the latest patch. Please someone assign this ticket to me.
Test Report
This report validates that the indicated patch addresses the issue.
Patch tested: https://core.trac.wordpress.org/attachment/ticket/56886/56886.patch
Environment
Actual Results
Additional Notes
I have tested the patch and it seems to be the radio buttons appeared as expected. But I'm not sure about the functionality about the search engine. How can I test it in the search engine, please let me know.
Supplemental Artifacts
Before:
After: