Make WordPress Core


Ignore:
Timestamp:
01/10/2005 08:21:06 PM (21 years ago)
Author:
saxmatt
Message:

Spam tastes great, we should eat more of it. Add 'spam' approval value, and basic blacklist.

File:
1 edited

Legend:

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

    r2009 r2075  
    2323  comment_content text NOT NULL,
    2424  comment_karma int(11) NOT NULL default '0',
    25   comment_approved enum('0','1') NOT NULL default '1',
     25  comment_approved enum('0','1','spam') NOT NULL default '1',
    2626  comment_agent varchar(255) NOT NULL default '',
    2727  comment_type varchar(20) NOT NULL default '',
     
    213213    add_option('comment_whitelist', 1);
    214214    add_option('page_uris');
     215    add_option('blacklist_keys');
    215216
    216217    // Delete unused options
     
    221222
    222223    // Set up a few options not to load by default
    223     $fatoptions = array( 'moderation_keys', 'recently_edited' );
     224    $fatoptions = array( 'moderation_keys', 'recently_edited', 'blacklist_keys' );
    224225    foreach ($fatoptions as $fatoption) :
    225226        $wpdb->query("UPDATE $wpdb->options SET `autoload` = 'no' WHERE option_name = '$fatoption'");
    226227    endforeach;
    227228}
     229
    228230?>
Note: See TracChangeset for help on using the changeset viewer.