WordPress.org

Make WordPress Core

Changeset 23005


Ignore:
Timestamp:
12/04/2012 12:51:02 AM (5 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-default-constants.php

    r22222 r23005  
    6464     */
    6565    if ( !defined( 'ADMIN_COOKIE_PATH' ) ) {
    66         if( !is_subdomain_install() ) {
     66        if ( ! is_subdomain_install() || trim( parse_url( get_option( 'siteurl' ), PHP_URL_PATH ), '/' ) ) {
    6767            define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH );
    6868        } else {
Note: See TracChangeset for help on using the changeset viewer.