Opened 13 years ago
Last modified 4 years ago
#18777 new enhancement
Support filtering of domain validation on Add New Site.
Reported by: | TJNowell | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Networks and Sites | Keywords: | needs-patch |
Focuses: | multisite, administration | Cc: |
Description
I've a client who wanted to add subdirectory sites in a multisite install e.g.:
example.com/department1/johnjoe
example.com/department2/fredbloggs
etc. But to do this, they had to add the site without the slash, then go back, and edit the sites URL.
So to allow support for this, ( coupled with the obligatory custom sunrise.php ) and to allow error checking ( e.g. not allowing depoortment1, and only allowing a preset number of subfolders ), I added a filter.
You'll find attached a small patch to site-new.php adding this filter
Attachments (1)
Change History (12)
#2
@
13 years ago
Indeed, that particular ticket is related to my use case, but there are other uses for the filter ( beyond the subdirectory use ), e.g. enforcing naming conventions
#3
@
11 years ago
- Component changed from Network Admin to Networks and Sites
- Focuses administration added
This ticket was mentioned in Slack in #core-multisite by sam. View the logs.
9 years ago
#7
in reply to:
↑ 5
@
9 years ago
- Keywords needs-patch added; has-patch removed
- Milestone changed from Awaiting Review to Future Release
Replying to lordspace:
any update on this ?
No progress yet, but domain and path validation (and filtering) is something I definitely want to work on in the near future. See also #17397 for ideas here.
I want to avoid immediately adding a filter so that we don't put ourselves in a hole. I do think it's something we can get to soon though.
Patch for site-new.php