Suggesting a patch
-
Hello Team,
I’m writing to report an oversight in Paid Memberships Pro – BuddyPress Add On version 1.1.1.
Right after line 34 of includes/directory.php:
$query_array->query_vars['include'] = array_intersect( $query_array->query_vars['include'], $pmpro_bp_members_in_directory );
this code should be inserted:
if (count ($query_array->query_vars['include']) == 0) $query_array->query_vars['include'] = array (0);
Otherwise, when the intersection is empty, the directory will show all the users instead of ‘no results found’.
Thank you for looking into this!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Suggesting a patch’ is closed to new replies.