Skip to content

Commit

Permalink
Merge pull request #54 from messica/dev
Browse files Browse the repository at this point in the history
 BUG FIX: Only getting members in directory if membership levels exist.
  • Loading branch information
ideadude authored May 16, 2019
2 parents a38778e + f473a77 commit aa221e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions includes/directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 2 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit aa221e8

Please sign in to comment.