Make WordPress Core

Changeset 8209 for trunk/wp-settings.php


Ignore:
Timestamp:
06/27/2008 10:54:21 PM (17 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 */
Note: See TracChangeset for help on using the changeset viewer.