Make WordPress Core


Ignore:
Timestamp:
04/11/2004 08:15:10 AM (23 years ago)
Author:
saxmatt
Message:

More options work. Bug fixes for advanced_edit not being boolean type, clean up of options code and update feedback (still needs work there), first bit of miscellaneous screen.

File:
1 edited

Legend:

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

    r1011 r1058  
    782782        // Option for using the advanced edit screen by default
    783783        if(!$wpdb->get_var("SELECT option_id FROM $tableoptions WHERE option_name = 'advanced_edit'")) {
    784                 $wpdb->query("INSERT INTO $tableoptions (option_name, option_type, option_value, option_admin_level) VALUES ('advanced_edit', 3, '0', 8)");
    785         }
     784                $wpdb->query("INSERT INTO $tableoptions (option_name, option_type, option_value, option_admin_level) VALUES ('advanced_edit', 5, '0', 8)");
     785        }
     786        // Fix for CVS versions
     787        $wpdb->query("UPDATE $tableoptions SET option_type = '5' WHERE option_name = 'advanced_edit'");
    786788       
    787789        // Now an option for moderation words
Note: See TracChangeset for help on using the changeset viewer.