Skip to content
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

Merged
merged 3 commits into from
May 24, 2018
Merged

Fix install and DB update errors #467

merged 3 commits into from
May 24, 2018

Conversation

joshcanhelp
Copy link
Contributor

@joshcanhelp joshcanhelp added this to the 3.6.0 milestone May 22, 2018
Copy link
Contributor

@lbalmaceda lbalmaceda left a 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' ) ) {
Copy link
Contributor

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

Copy link
Contributor Author

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 );
Copy link
Contributor

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  ) {

Copy link
Contributor Author

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.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants