Multisite in a subdirectory: For subdomain installs, use a root admin cookie path, not a wp-admin specific one.
This is necessary because, like subdirectory installs, we will have wp-admin accessed at different levels. fixes #22705. git-svn-id: https://develop.svn.wordpress.org/trunk@23005 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
57cda41fdf
commit
b925385ca1
@ -63,7 +63,7 @@ function ms_cookie_constants( ) {
|
||||
* @since 2.6.0
|
||||
*/
|
||||
if ( !defined( 'ADMIN_COOKIE_PATH' ) ) {
|
||||
if( !is_subdomain_install() ) {
|
||||
if ( ! is_subdomain_install() || trim( parse_url( get_option( 'siteurl' ), PHP_URL_PATH ), '/' ) ) {
|
||||
define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH );
|
||||
} else {
|
||||
define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH . 'wp-admin' );
|
||||
|
Loading…
Reference in New Issue
Block a user