Make WordPress Core

Changeset 2725 for trunk/wp-settings.php


Ignore:
Timestamp:
07/18/2005 07:55:24 PM (19 years ago)
Author:
matt
Message:

Let advanced users override cookies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r2706 r2725  
    5757if ( defined('CUSTOM_USER_META_TABLE') )
    5858    $wpdb->usermeta = CUSTOM_USER_META_TABLE;
    59 
     59   
    6060// We're going to need to keep this around for a few months even though we're not using it internally
    6161
     
    104104    define('COOKIEHASH', $cookiehash);
    105105endif;
     106
     107if ( !defined('USER_COOKIE') )
     108    define('USER_COOKIE', 'wordpressuser_'. COOKIEHASH);
     109if ( !defined('PASS_COOKIE') )
     110    define('PASS_COOKIE', 'wordpresspass_'. COOKIEHASH);
     111if ( !defined('COOKIEPATH') )
     112    define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('home') . '/' ) );
     113if ( !defined('SITECOOKIEPATH') )
     114    define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('siteurl') . '/' ) );
     115if ( !defined('COOKIE_DOMAIN') )
     116    define('COOKIE_DOMAIN', false);
    106117
    107118require (ABSPATH . WPINC . '/vars.php');
Note: See TracChangeset for help on using the changeset viewer.