Skip to content

Commit 8bfb181

Browse files
authored
Merge pull request #336 from Ultimate-Multisite/add-tests-and-compat-fix
Add comprehensive test suite and fix main site compat
2 parents 6fd4a99 + 9e25f2c commit 8bfb181

48 files changed

Lines changed: 7903 additions & 223 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "devstone/ultimate-multisite",
33
"homepage": "https://UltimateMultisite.com",
44
"description": "The Multisite Website as a Service (WaaS) plugin.",
5-
"version": "2.4.11-beta.4",
5+
"version": "2.4.11-beta.3",
66
"authors": [
77
{
88
"name": "Arindo Duque",

inc/class-wp-ultimo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class WP_Ultimo {
3131
* @since 2.1.0
3232
* @var string
3333
*/
34-
const VERSION = '2.4.11-beta.4';
34+
const VERSION = '2.4.11-beta.3';
3535

3636
/**
3737
* Core log handle for Ultimate Multisite.

inc/compat/class-multiple-accounts-compat.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,12 @@ public function fix_login($user, $username, $password) {
423423
return $user;
424424
}
425425

426+
// On the main site, we don't need to scope email lookups
427+
// to a specific sub-site. Let WordPress handle it normally.
428+
if (is_main_site()) {
429+
return $user;
430+
}
431+
426432
// Sets the right user to be returned;
427433
$user = $this->get_right_user($username, $password);
428434

0 commit comments

Comments
 (0)