Skip to content

Commit

Permalink
updated DB update CDN URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcanhelp committed May 24, 2018
1 parent 705ccb3 commit 8f24816
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/WP_Auth0_DBManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ public function install_db( $version_to_install = null, $app_token = '' ) {
// 3.4.0

if ( $this->current_db_version < 15 || 15 === $version_to_install ) {
$options->set('cdn_url', '//cdn.auth0.com/js/lock/11.1/lock.min.js');
$options->set('auth0js-cdn', '//cdn.auth0.com/js/auth0/9.1/auth0.min.js');
$options->set('cdn_url', WPA0_LOCK_CDN_URL);
$options->set('auth0js-cdn', WPA0_AUTH0_JS_CDN_URL);
$options->set('cache_expiration', 1440);

// Update Client
Expand Down Expand Up @@ -150,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 );
}

if ( '//cdn.auth0.com/js/auth0/9.0.0/auth0.min.js' === $options->get( 'auth0js-cdn' ) ) {
$options->set( 'auth0js-cdn', '//cdn.auth0.com/js/auth0/9.1/auth0.min.js' );
$options->set( 'auth0js-cdn', WPA0_AUTH0_JS_CDN_URL );
}

// Update app type and client grant
Expand Down
1 change: 0 additions & 1 deletion lib/WP_Auth0_Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ protected function defaults() {
'amplificator_subtitle' => '',
'connections' => array(),
'auth0js-cdn' => WPA0_AUTH0_JS_CDN_URL,
'auth0_table' => false,

// Basic
'domain' => '',
Expand Down

0 comments on commit 8f24816

Please sign in to comment.