[wp-trac] [WordPress Trac] #22639: Multisite in a subdirectory suggests the wrong location for .htaccess
WordPress Trac
noreply at wordpress.org
Sun Dec 2 15:01:04 UTC 2012
#22639: Multisite in a subdirectory suggests the wrong location for .htaccess
--------------------------+--------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5
Component: Multisite | Version: trunk
Severity: normal | Resolution:
Keywords: |
--------------------------+--------------------
Comment (by ryan):
When not running in a subdir, $wp_dir_from_root can be '/'. Thus, the
following code will remove all slashes from ABSPATH:
{{{
str_replace( $wp_dir_from_root, '', ABSPATH )
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22639#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list