-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix install and DB update errors #467
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎰
@@ -180,11 +150,11 @@ public function install_db( $version_to_install = null, $app_token = '' ) { | |||
// Update Lock and Auth versions | |||
|
|||
if ( '//cdn.auth0.com/js/lock/11.0.0/lock.min.js' === $options->get( 'cdn_url' ) ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this hardcoded to 11.0.0
and later a different value is assigned? same for the one below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic is difficult to follow, I know, but they are, technically, doing different things.
@@ -180,11 +150,11 @@ public function install_db( $version_to_install = null, $app_token = '' ) { | |||
// Update Lock and Auth versions | |||
|
|||
if ( '//cdn.auth0.com/js/lock/11.0.0/lock.min.js' === $options->get( 'cdn_url' ) ) { | |||
$options->set( 'cdn_url', '//cdn.auth0.com/js/lock/11.1/lock.min.js' ); | |||
$options->set( 'cdn_url', WPA0_LOCK_CDN_URL ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is already set under this next line (snippet)
if ( $this->current_db_version < 15 || 15 === $version_to_install ) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not exactly. Logic is difficult to follow but this serves a different function.
use_lock_10
setting in DB update process and defaults