Skip to content

Commit 7304ff7

Browse files
authored
Stop using $blog_id before it's defined
Based on the way `is_user_member_of_blog(...)` works... https://core.trac.wordpress.org/browser/tags/4.9.8/src/wp-includes/user.php#L703 ... providing an undefined variable will work the same as not providing anything for the optional `$blog_id` variable, so I'm simply removing it from this function call. Fixes #67
1 parent 177686e commit 7304ff7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

onelogin-saml-sso/php/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ function saml_acs() {
265265
}
266266

267267
if ($user_id) {
268-
if (is_multisite() && !is_user_member_of_blog($user_id, $blog_id)) {
268+
if (is_multisite() && !is_user_member_of_blog($user_id)) {
269269
if (get_option('onelogin_saml_autocreate')) {
270270
//Exist's but is not user to the current blog id
271271
$blog_id = get_current_blog_id();

0 commit comments

Comments
 (0)