[buddypress-trac] [BuddyPress Trac] #5370: bp_legacy_theme_ajax_querystring per_page stopped working

buddypress-trac noreply at wordpress.org
Mon Feb 3 21:24:45 UTC 2014

#5370: bp_legacy_theme_ajax_querystring per_page stopped working
 Reporter:  modemlooper   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  1.9.1
 Severity:  normal        |   Keywords:  dev-feedback
 Using the code below no longer works right. It only shows two items but
 when clicking pagination on activity it returns page 1 results and loads
 them below. On members loops It fades and then replaces itself with page 1

 Using per_page in a template file has same results. Changing per_page in
 bp-members-template.php > bp_has_members() works like it should.

 function my_bp_loop_querystring( $query_string, $object ) {

     $query_string = 'per_page=2';

     return $query_string;
 add_filter( 'bp_legacy_theme_ajax_querystring', 'my_bp_loop_querystring',
 20, 2 );

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5370>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list