[wp-trac] [WordPress Trac] #17376: Multisite Subfolders and bunk /wp-admin areas
WordPress Trac
noreply at wordpress.org
Fri Jan 31 18:34:49 UTC 2014
#17376: Multisite Subfolders and bunk /wp-admin areas
-------------------------------------------------+-------------------------
Reporter: MadtownLems | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9
Component: Bootstrap/Load | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback needs-unit- | Focuses: multisite
tests |
-------------------------------------------------+-------------------------
Comment (by Denis-de-Bernardy):
Replying to [comment:12 jeremyfelt]:
I'd argue it should be this instead:
1. The request comes in for `http://validnetwork.com/invalid-site/wp-
admin/`
2. WordPress establishes that the network - `$current_site` - is valid.
3. WordPress establishes that the requested path does not match a current
site and fills `$current_blog` in with the network's primary site data.
4. Check that the user can access the main site's admin area. If not, fail
with an error message that says permission denied.
5. If yes, redirect to the primary site's admin UR -
`http://validnetwork.com/wp-admin/`
6. Show some sort of message indicating that the request was invalid and
we redirected.
The above is what my first patch does.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17376#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list