Skip to content

Commit 45ca008

Browse files
author
Ryan Welcher
committed
Updates as per plugin author
1 parent b6ecceb commit 45ca008

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

aad-sso-wordpress.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Plugin URI: http://github.com/psignoret/aad-sso-wordpress
66
Description: Allows you to use your organization's Azure Active Directory user accounts to log in to WordPress. If your organization is using Office 365, your user accounts are already in Azure Active Directory. This plugin uses OAuth 2.0 to authenticate users, and the Azure Active Directory Graph to get group membership and other details.
77
Author: Philippe Signoret
8-
Version: 0.6.2
8+
Version: 0.6.3
99
Author URI: https://www.psignoret.com/
1010
Text Domain: aad-sso-wordpress
1111
Domain Path: /languages/
@@ -17,7 +17,7 @@
1717
define( 'AADSSO_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
1818
define( 'AADSSO_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
1919

20-
20+
defined( 'AADSSO_DEBUG' ) or define( 'AADSSP_DEBUG', FALSE );
2121
defined( 'AADSSO_DEBUG_LEVEL' ) or define( 'AADSSO_DEBUG_LEVEL', 0 );
2222

2323
// Proxy to be used for calls, should be useful for tracing with Fiddler
@@ -641,21 +641,21 @@ public static function debug_log( $message, $level = 0 ) {
641641
/**
642642
* Allow other plugins or themes to set the debug status of this plugin.
643643
*
644-
* @since 0.6.2
644+
* @since 0.6.3
645645
* @param bool The current debug status.
646646
*/
647-
$aad_sso_debug = apply_filters( 'aadsso_debug', false );
647+
$debug_enabled = apply_filters( 'aadsso_debug', AADSSO_DEBUG );
648648

649649

650650
/**
651651
* Allow other plugins or themes to set the debug level
652-
* @since 0.6.2
652+
* @since 0.6.3
653653
* @param int
654654
*/
655-
$aad_sso_debug_level = apply_filters( 'aadsso_debug_level', 0 );
655+
$debug_level = apply_filters( 'aadsso_debug_level', AADSSO_DEBUG_LEVEL );
656656

657657

658-
if ( true === $aad_sso_debug && $aad_sso_debug_level >= $level ) {
658+
if ( true === $debug_enabled && $debug_level >= $level ) {
659659
if ( false === strpos( $message, "\n" ) ) {
660660
error_log( 'AADSSO: ' . $message );
661661
} else {

0 commit comments

Comments
 (0)