Skip to content

Commit

Permalink
fixing wrong title and icon displayed when a widget is added with a s…
Browse files Browse the repository at this point in the history
…eparate title and icon; fixes #269
  • Loading branch information
joshcanhelp committed Jan 31, 2018
1 parent 1bd0c05 commit aed2c0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/WP_Auth0_Lock10_Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,7 @@ public function get_lock_options() {
$extraOptions["auth"]["redirectUrl"] = $this->get_code_callback_url();
}

$options_obj = array_merge_recursive( $extraOptions, $options_obj );
$options_obj = array_merge_recursive( $options_obj , $extended_settings );
$options_obj = array_replace_recursive( $extraOptions, $options_obj, $extended_settings );

if ( ! $this->show_as_modal() ) {
$options_obj['container'] = 'auth0-login-form';
Expand Down
3 changes: 1 addition & 2 deletions lib/WP_Auth0_Lock_Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,7 @@ public function get_lock_options() {
$extraOptions["callbackURL"] = $this->get_code_callback_url();
}

$options_obj = array_merge( $extraOptions, $options_obj );
$options_obj = array_merge( $options_obj , $extended_settings );
$options_obj = array_merge( $extraOptions, $options_obj, $extended_settings );

if ( ! $this->show_as_modal() ) {
$options_obj['container'] = 'auth0-login-form';
Expand Down

0 comments on commit aed2c0e

Please sign in to comment.