Make WordPress Core


Ignore:
Timestamp:
03/25/2004 10:11:58 AM (22 years ago)
Author:
saxmatt
Message:

If more than X links in a comment, moderate that sucker.

File:
1 edited

Legend:

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

    r1008 r1011  
    795795    }
    796796
     797    // Option for max # of links per comment
     798    if(!$wpdb->get_var("SELECT option_id FROM $tableoptions WHERE option_name = 'comment_max_links'")) {
     799        $wpdb->query("INSERT INTO $tableoptions (option_name, option_type, option_value, option_admin_level) VALUES ('comment_max_links', 3, '5', 8)");
     800    }
     801
    797802}
    798803
Note: See TracChangeset for help on using the changeset viewer.