Show
Ignore:
Timestamp:
06/27/08 22:54:21 (5 months ago)
Author:
ryan
Message:

Set auth cookie for plugins directory to support direct load plugin files that call auth_redirect(). see #7001

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-settings.php

    r8168 r8209  
    363363/** 
    364364 * It is possible to define this in wp-config.php 
     365 * @since 2.6 
     366 */ 
     367if ( !defined('ADMIN_COOKIE_PATH') ) 
     368    define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH . 'wp-admin' ); 
     369 
     370/** 
     371 * It is possible to define this in wp-config.php 
     372 * @since 2.6 
     373 */ 
     374if ( !defined('PLUGINS_COOKIE_PATH') ) 
     375    define( 'PLUGINS_COOKIE_PATH', preg_replace('|https?://[^/]+|i', '', WP_PLUGIN_URL)  ); 
     376 
     377/** 
     378 * It is possible to define this in wp-config.php 
    365379 * @since 2.0.0 
    366380 */