Runs the upgrade from a legacy version.
Description
See also
Parameters
- $legacy_db_version
-
(string) (Required) The legacy version number.
Source
File: src/components/legacy-upgrades.php
public function upgrade( $legacy_db_version ) { $last_legacy_db_version = '1.0.10'; if ( $legacy_db_version === $last_legacy_db_version ) { return; } require_once ABSPATH . 'wp-admin/includes/upgrade.php'; if ( version_compare( $legacy_db_version, '1.0.3', '<' ) ) { $this->upgrade_to_1_0_3(); $this->update_db_version( '1.0.3' ); } if ( version_compare( $legacy_db_version, '1.0.4', '<' ) ) { $this->upgrade_to_1_0_4(); $this->update_db_version( '1.0.4' ); } if ( version_compare( $legacy_db_version, '1.0.5', '<' ) ) { $this->upgrade_to_1_0_5(); $this->update_db_version( '1.0.5' ); } if ( version_compare( $legacy_db_version, '1.0.6', '<' ) ) { $this->upgrade_to_1_0_6(); $this->update_db_version( '1.0.6' ); } if ( version_compare( $legacy_db_version, '1.0.7', '<' ) ) { $this->upgrade_to_1_0_7(); $this->update_db_version( '1.0.7' ); } if ( version_compare( $legacy_db_version, '1.0.8', '<' ) ) { $this->upgrade_to_1_0_8(); $this->update_db_version( '1.0.8' ); } if ( version_compare( $legacy_db_version, '1.0.9', '<' ) ) { $this->upgrade_to_1_0_9(); $this->update_db_version( '1.0.9' ); } if ( version_compare( $legacy_db_version, '1.0.10', '<' ) ) { $this->upgrade_to_1_0_10(); $this->update_db_version( '1.0.10' ); } }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |