[Plugin: BuddyPress Better Pagination] Bug with custom slug
-
This awsome plugin doesn’t work with Custom Slug like set in BP_MEMBERS_SLUG and others.
IMHO I think this could be a good choise, replaceif ( $members_per && ( "members" == $bp->current_component || 'friends' == $bp->current_component ) ) return $query_string . '&per_page='.$members_per;
with
if ( $members_per && ( BP_MEMBERS_SLUG == $bp->current_component || 'friends' == $bp->current_component ) ) return $query_string . '&per_page='.$members_per;
Rows affected are: 130, 133, 136, 139, 142.
I changed with one of this constants defined by codexhttps://codex.buddypress.org/extending-buddypress/changing-internal-configuration-settings/
Thanks for your work.
- The topic ‘[Plugin: BuddyPress Better Pagination] Bug with custom slug’ is closed to new replies.