Skip to content

Commit

Permalink
[#883] Support for both MO global vars
Browse files Browse the repository at this point in the history
  • Loading branch information
bd-viget committed Apr 17, 2024
1 parent dd8127f commit 745dfae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client-mu-plugins/goodbids/src/classes/Plugins/MiniOrange.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ function ( int $site_id ) {
// Path: plugins/miniorange-oauth-oidc-single-sign-on/classes/common/class-moutils.php
// Access: global $Yh; or similar

global $Uj; // This has potential to change when the MO plugin is updated.
global $Yh, $Uj; // This has potential to change when the MO plugin is updated.

if ( ! $Uj ) {
if ( empty( $Yh ) && empty( $Uj ) ) {
return;
}

$mo_global = $Uj;
$mo_global = ! empty( $Yh ) ? $Yh : $Uj;

$sites_key = 'mo_oauth_c3Vic2l0ZXNzZWxlY3RlZA';
$sites_val = $mo_global->mo_oauth_client_get_option( $sites_key );
Expand Down

0 comments on commit 745dfae

Please sign in to comment.