Make WordPress Core


Ignore:
Timestamp:
09/05/2007 07:20:53 PM (18 years ago)
Author:
markjaquith
Message:

Deprecate option_can_override, option_type, option_width, option_height, option_description, option_admin_level from options table. Props Nazgul. fixes #4390

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/schema.php

    r5825 r6039  
    7878  blog_id int(11) NOT NULL default '0',
    7979  option_name varchar(64) NOT NULL default '',
    80   option_can_override enum('Y','N') NOT NULL default 'Y',
    81   option_type int(11) NOT NULL default '1',
    8280  option_value longtext NOT NULL,
    83   option_width int(11) NOT NULL default '20',
    84   option_height int(11) NOT NULL default '8',
    85   option_description tinytext NOT NULL,
    86   option_admin_level int(11) NOT NULL default '1',
    8781  autoload enum('yes','no') NOT NULL default 'yes',
    8882  PRIMARY KEY  (option_id,blog_id,option_name),
     
    156150    $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';
    157151    $guessurl = preg_replace('|/wp-admin/.*|i', '', $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
    158     add_option('siteurl', $guessurl, __('WordPress web address'));
    159     add_option('blogname', __('My Blog'), __('Blog title'));
    160     add_option('blogdescription', __('Just another WordPress weblog'), __('Short tagline'));
     152    add_option('siteurl', $guessurl);
     153    add_option('blogname', __('My Blog'));
     154    add_option('blogdescription', __('Just another WordPress weblog'));
    161155    add_option('new_users_can_blog', 0);
    162156    add_option('users_can_register', 0);
     
    204198    add_option('gmt_offset', date('Z') / 3600);
    205199    // 1.5
    206     add_option('default_email_category', 1, __('Posts by email go to this category'));
     200    add_option('default_email_category', 1);
    207201    add_option('recently_edited');
    208202    add_option('use_linksupdate', 0);
Note: See TracChangeset for help on using the changeset viewer.