Commit 9083519e authored by Erick Hitter's avatar Erick Hitter
Browse files

Review feedback: check that version is lower, to prevent loops if DB version...

Review feedback: check that version is lower, to prevent loops if DB version is greater than expected
parent f498a988
......@@ -64,7 +64,8 @@ class Events_Store extends Singleton {
*/
protected function prepare_tables() {
// Nothing to do
if ( (int) get_option( self::DB_VERSION_OPTION ) === self::DB_VERSION ) {
$current_version = (int) get_option( self::DB_VERSION_OPTION );
if ( version_compare( $current_version, self::DB_VERSION, '>=' ) ) {
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment