Value should be null if not set.
This commit is contained in:
Jeff Stieler 2019-12-24 13:19:08 -05:00 committed by GitHub
parent a5c4e13fbb
commit c28b6d9f2c
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ class Install {
* @return boolean
*/
public static function needs_db_update() {
$current_db_version = get_option( self::VERSION_OPTION );
$current_db_version = get_option( self::VERSION_OPTION, null );
$updates = self::get_db_update_callbacks();
$update_versions = array_keys( $updates );
usort( $update_versions, 'version_compare' );