Skip to content

Commit 755eb19

Browse files
authored
Merge pull request #44 from emrikol/patch-1
Allow WP-CLI to work
2 parents 8811bc2 + e283b6e commit 755eb19

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

onelogin-saml-sso/php/functions.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ function saml_user_register() {
6060
}
6161

6262
function saml_sso() {
63+
if ( defined( 'WP_CLI' ) && WP_CLI ) {
64+
return true;
65+
}
66+
6367
if (is_user_logged_in()) {
6468
return true;
6569
}

0 commit comments

Comments
 (0)