Ticket #6251: bp-members-template.php.patch
| File bp-members-template.php.patch, 1.7 KB (added by , 11 years ago) |
|---|
-
src/bp-members/bp-members-template.php
333 333 $add_args['s'] = urlencode( $search_terms ); 334 334 } 335 335 336 $this->pag_links = paginate_links(array(337 ' base' => add_query_arg( $pag_args, $base ),338 ' format' => '',339 ' total' => ceil( (int) $this->total_member_count / (int) $this->pag_num ),340 ' current' => (int) $this->pag_page,336 $def_styling_args = array( 337 'show_all' => false, 338 'end_size' => 1, 339 'mid_size' => 1, 340 'prev_next' => true, 341 341 'prev_text' => _x( '←', 'Member pagination previous text', 'buddypress' ), 342 342 'next_text' => _x( '→', 'Member pagination next text', 'buddypress' ), 343 'mid_size' => 1, 344 'add_args' => $add_args, 345 ) ); 343 'type' => 'plain', 344 'add_fragment' => '', 345 'before_page_number' => '', 346 'after_page_number' => '' 347 ); 348 349 $bp_members_paginate_links_styling = apply_filters( 'bp_members_paginate_links_styling', array() ); 350 $bp_members_pagination_styling_args = wp_parse_args( $bp_members_paginate_links_styling, $def_styling_args ); 351 352 $bp_members_pagination_args = array_merge(array( 353 'base' => add_query_arg( $pag_args, $base ), 354 'format' => '', 355 'total' => ceil( (int) $this->total_member_count / (int) $this->pag_num ), 356 'current' => (int) $this->pag_page, 357 'add_args' => $add_args, 358 ), $bp_members_pagination_styling_args ); 359 360 $this->pag_links = paginate_links( $bp_members_pagination_args ); 361 346 362 } 347 363 } 348 364