[wp-trac] [WordPress Trac] #17376: Multisite Subfolders and bunk /wp-admin areas
WordPress Trac
noreply at wordpress.org
Tue Mar 25 21:29:44 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 nacin):
[attachment:17376.4.diff] is a bit of an adjustment from jeremyfelt's
approach, and refreshed after recent commits to #27003.
I'm not sure I want to add is_admin() to get_site_by_path() as it would be
adding global state to a general utility function. Instead, we can simply
ignore its results for is_admin() when $path !== $current_blog->path. (I'm
not sure if strcasecmp() is needed here; it probably isn't.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17376#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list