diff options
Diffstat (limited to 'wp-settings.php')
| -rw-r--r-- | wp-settings.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/wp-settings.php b/wp-settings.php index d37fb72..0f39503 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -404,8 +404,13 @@ if ( !defined('SITECOOKIEPATH') ) * It is possible to define this in wp-config.php * @since 2.6 */ -if ( !defined('ADMIN_COOKIE_PATH') ) - define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH . 'wp-admin' ); +if ( !defined('ADMIN_COOKIE_PATH') ) { + if( constant( 'VHOST' ) == 'no' ) { + define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH ); + } else { + define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH . 'wp-admin' ); + } +} /** * It is possible to define this in wp-config.php |
