From 1fe3a7dbfb2e768a1afbe320840ef69bfd6d2cb4 Mon Sep 17 00:00:00 2001 From: Jessica Oros Date: Thu, 16 May 2019 15:03:12 -0500 Subject: [PATCH 1/3] BUG FIX: Only getting members in directory if membership levels exist. --- includes/directory.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/directory.php b/includes/directory.php index 45147b1..9f7b62e 100644 --- a/includes/directory.php +++ b/includes/directory.php @@ -62,6 +62,10 @@ function pmpro_bp_get_members_in_directory() { } $pmpro_levels = pmpro_getAllLevels(true, true); + + if ( empty( $pmpro_levels ) ) { + return array(); + } //see if we should include them in the member directory. $include_levels = array(); From d4ae9531354090c54a2ea19032125aca8f93993e Mon Sep 17 00:00:00 2001 From: Jessica Oros Date: Thu, 16 May 2019 15:03:55 -0500 Subject: [PATCH 2/3] changelog --- readme.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.txt b/readme.txt index 28451aa..d994fcf 100644 --- a/readme.txt +++ b/readme.txt @@ -100,6 +100,7 @@ This plugin also allows you to use the BuddyPress user registration process (in == Changelog == = 1.2.3 = +* BUG FIX: Only getting members in directory if membership levels exist. * BUG FIX: Now locking down all of BuddyPress when a level's settings are set to use non-member settings and BuddyPress is locked down for non-members. * BUG FIX: Fixed issue with admin menu link sometimes pointing to the wrong address. * BUG FIX: Hiding friend request and messaging buttons if user doesn't have access. From f473a77d094ad4e33b00374bde59485837d0edd8 Mon Sep 17 00:00:00 2001 From: Jessica Oros Date: Thu, 16 May 2019 15:04:27 -0500 Subject: [PATCH 3/3] tested up to 5.2 --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index d994fcf..276c5a3 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: strangerstudios, great-h-master Tags: paid memberships pro, pmpro, buddypress Requires at least: 4 -Tested up to: 5.1.1 +Tested up to: 5.2 Stable tag: 1.2.3 Manage access to your BuddyPress Community using Paid Memberships Pro