upgrade_all [ WordPress Function ]
upgrade_all ( No parameters )
| Defined at: |
|
Functions to be called in install and upgrade scripts.
{@internal Missing Long Description}}
Source
<?php
function upgrade_all() {
global $wp_current_db_version, $wp_db_version;
$wp_current_db_version = __get_option('db_version');
// We are up-to-date. Nothing to do.
if ( $wp_db_version == $wp_current_db_version )
return;
// If the version is not set in the DB, try to guess the version.
if ( empty($wp_current_db_version) ) {
$wp_current_db_version = 0;
// If the template option exists, we have 1.5.
$template = __get_option('template');
if ( !empty($template) )
$wp_current_db_version = 2541;
}
if ( $wp_current_db_version < 6039 )
upgrade_230_options_table();
populate_options();
if ( $wp_current_db_version < 2541 ) {
upgrade_100();
upgrade_101();
upgrade_110();
upgrade_130();
}
if ( $wp_current_db_version < 3308 )
upgrade_160();
if ( $wp_current_db_version < 4772 )
upgrade_210();
if ( $wp_current_db_version < 4351 )
upgrade_old_slugs();
if ( $wp_current_db_version < 5539 )
upgrade_230();
if ( $wp_current_db_version < 6124 )
upgrade_230_old_tables();
if ( $wp_current_db_version < 7499 )
upgrade_250();
if ( $wp_current_db_version < 7935 )
upgrade_252();
if ( $wp_current_db_version < 8201 )
upgrade_260();
if ( $wp_current_db_version < 8989 )
upgrade_270();
if ( $wp_current_db_version < 10360 )
upgrade_280();
if ( $wp_current_db_version < 11958 )
upgrade_290();
if ( $wp_current_db_version < 15260 )
upgrade_300();
if ( $wp_current_db_version < 19389 )
upgrade_330();
if ( $wp_current_db_version < 20080 )
upgrade_340();
maybe_disable_automattic_widgets();
update_option( 'db_version', $wp_db_version );
update_option( 'db_upgraded', true );
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Play UPGRADE COMPLETE!, a free online game on Kongregate
Jun 30, 2009 ... See if you can earn the next badge! Ride the Lightning (medium, 15 points). Fully upgrade all 12 components of your ship. Ride the Lightning ...
www.kongregate.com - WordPress › Support » Upgrade did not complete
0, 57) made by wp_upgrade, upgrade_all, upgrade_230 WordPress database error Duplicate entry '3' for key 1 for query INSERT INTO wp_terms (term_id, ...
wordpress.org - API/Oneclick commands - DreamHost
Mar 10, 2012... 1.1.3 oneclick-install_easy; 1.1.4 oneclick-install_advanced; 1.1.5 oneclick- upgrade; 1.1.6 oneclick-upgrade_all; 1.1.7 oneclick-list_settings ...
wiki.dreamhost.com - Debian Linux apt-get package management cheat sheet
You can also upgrade all packages in single operations, which makes it even more attractive. (2) dpkg : Debian packaging tool which can be use to install, query ...
www.cyberciti.biz