upgrade_230_options_table [ WordPress Function ]
upgrade_230_options_table ( No parameters )
| Defined at: |
|
Benzer Fonksiyonlar: upgrade_230_old_tables, add_options_page, upgrade_230, update_option, core_upgrade_preamble
Remove old options from the database.
Source
<?php
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();
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- WordPress › Support » Upgrade did not complete
... query ALTER TABLE wp_options DROP option_type made by wp_upgrade, upgrade_all, upgrade_230_options_table WordPress database error Can't DROP ...
wordpress.org - Docs for page upgrade.php
Remove old options from the database. since: 2.3.0. void upgrade_230_options_table (). upgrade_250 (line 1023). Execute changes made in WordPress 2.5.0.
phpdoc.wordpress.org - PHPXRef 0.7 : WordPress : Detail view of upgrade.php
upgrade_230_options_table() upgrade_230_old_tables() ...
phpxref.ftwr.co.uk - /wp-admin/includes/upgrade.php source - PHP Cross Reference ...
Jun 1, 2011... < 6039 ) 407 upgrade_230_options_table(); 408 409 populate_options(); 410 411 if ( $wp_current_db_version < 2541 ) { 412 upgrade_100(); ...
xref.yoast.com