upgrade_230_options_table() – Remove old options from the database.
You appear to be a bot. Output may be restricted
Description
Remove old options from the database.
Usage
upgrade_230_options_table();
Parameters
Returns
void
Source
File name: wordpress/wp-admin/includes/upgrade.php
Lines:
1 to 9 of 9
function upgrade_230_options_table() { global $wpdb; $old_options_fields = array( 'option_can_override', 'option_type', 'option_width', 'option_height', 'option_description', 'option_admin_level' ); $wpdb->hide_errors(); foreach ( $old_options_fields as $old ) { $wpdb->query( "ALTER TABLE $wpdb->options DROP $old" ); } $wpdb->show_errors(); }