Skip to content

Commit

Permalink
Merge pull request #154 from auth0/dev
Browse files Browse the repository at this point in the history
2.1.4
  • Loading branch information
glena committed Mar 18, 2016
2 parents 0d878d7 + 33098a4 commit 6fdeb4e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions WP_Auth0.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Auth0 for WordPress
* Description: Implements the Auth0 Single Sign On solution into Wordpress
* Version: 2.1.3
* Version: 2.1.4
* Author: Auth0
* Author URI: https://auth0.com
*/
Expand All @@ -12,7 +12,7 @@
define( 'WPA0_PLUGIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
define( 'WPA0_LANG', 'wp-auth0' );
define( 'AUTH0_DB_VERSION', 4 );
define( 'WPA0_VERSION', '2.1.3' );
define( 'WPA0_VERSION', '2.1.4' );

/**
* Main plugin class
Expand Down Expand Up @@ -223,7 +223,7 @@ public function shortcode( $atts ) {
}

if (!isset($atts['redirect_to'])) {
$atts['redirect_to'] = $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
$atts['redirect_to'] = home_url($_SERVER["REQUEST_URI"]);
}

ob_start();
Expand Down
2 changes: 1 addition & 1 deletion lib/WP_Auth0_Embed_Widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function widget( $args, $instance ) {
$instance['modal_trigger_name'] = isset( $instance['modal_trigger_name'] ) ? $instance['modal_trigger_name'] : 'Login';

if (!isset($instance['redirect_to'])) {
$instance['redirect_to'] = $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
$instance['redirect_to'] = home_url($_SERVER["REQUEST_URI"]);
}

require_once WPA0_PLUGIN_DIR . 'templates/login-form.php';
Expand Down
2 changes: 1 addition & 1 deletion lib/WP_Auth0_Lock_Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function is_registration_enabled() {
}

public function show_as_modal() {
return (isset($this->extended_settings['show_as_modal']) && $this->extended_settings['show_as_modal'] == 1);
return (isset($this->extended_settings['show_as_modal']) && $this->extended_settings['show_as_modal']);
}

public function modal_button_name() {
Expand Down
2 changes: 1 addition & 1 deletion lib/WP_Auth0_LoginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ public function login_user( $userinfo, $id_token, $access_token ) {

if ( ! $this->ignore_unverified_email && 1 == $requires_verified_email ) {
if ( empty( $userinfo->email ) ) {
$msg = __( 'This account does not have an email associated, as required by your site administrator.', WPA0_LANG );
$msg = __( 'This account does not have an email associated, as required by your site administrator.', WPA0_LANG );
$msg .= '<br/><br/>';
$msg .= '<a href="' . home_url() . '">' . __( '← Go back', WPA0_LANG ) . '</a>';

Expand Down
2 changes: 1 addition & 1 deletion lib/WP_Auth0_UserCreator.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Please contact your site’s administrator.<?php
<?php

class WP_Auth0_UserCreator {

Expand Down

0 comments on commit 6fdeb4e

Please sign in to comment.