Make WordPress Core

Changeset 4144 for trunk/wp-settings.php


Ignore:
Timestamp:
08/30/2006 09:46:31 PM (18 years ago)
Author:
ryan
Message:

Use get_option instead of get_settings. Just 'cause.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r4131 r4144  
    142142if (!strstr($_SERVER['PHP_SELF'], 'install.php')) :
    143143    // Used to guarantee unique hash cookies
    144     $cookiehash = md5(get_settings('siteurl')); // Remove in 1.4
     144    $cookiehash = md5(get_option('siteurl')); // Remove in 1.4
    145145    define('COOKIEHASH', $cookiehash);
    146146endif;
     
    151151    define('PASS_COOKIE', 'wordpresspass_'. COOKIEHASH);
    152152if ( !defined('COOKIEPATH') )
    153     define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('home') . '/' ) );
     153    define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_option('home') . '/' ) );
    154154if ( !defined('SITECOOKIEPATH') )
    155     define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('siteurl') . '/' ) );
     155    define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_option('siteurl') . '/' ) );
    156156if ( !defined('COOKIE_DOMAIN') )
    157157    define('COOKIE_DOMAIN', false);
     
    160160
    161161// Check for hacks file if the option is enabled
    162 if (get_settings('hack_file')) {
     162if (get_option('hack_file')) {
    163163    if (file_exists(ABSPATH . '/my-hacks.php'))
    164164        require(ABSPATH . '/my-hacks.php');
    165165}
    166166
    167 if ( get_settings('active_plugins') ) {
    168     $current_plugins = get_settings('active_plugins');
     167if ( get_option('active_plugins') ) {
     168    $current_plugins = get_option('active_plugins');
    169169    if ( is_array($current_plugins) ) {
    170170        foreach ($current_plugins as $plugin) {
Note: See TracChangeset for help on using the changeset viewer.