Add new site valid domain filter
|Reported by:||TJNowell||Owned by:|
I've a client who wanted to add subdirectory sites in a multisite install e.g.:
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