Changeset 9260
- Timestamp:
- 12/23/2014 01:00:46 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-template.php
r9259 r9260 315 315 'prev_text' => _x( '←', 'Activity pagination previous text', 'buddypress' ), 316 316 'next_text' => _x( '→', 'Activity pagination next text', 'buddypress' ), 317 'mid_size' => 1 317 'mid_size' => 1, 318 'add_args' => array(), 318 319 ) ); 319 320 } -
trunk/src/bp-blogs/bp-blogs-template.php
r9218 r9260 249 249 'prev_text' => _x( '←', 'Blog pagination previous text', 'buddypress' ), 250 250 'next_text' => _x( '→', 'Blog pagination next text', 'buddypress' ), 251 'mid_size' => 1 251 'mid_size' => 1, 252 'add_args' => array(), 252 253 ) ); 253 254 } -
trunk/src/bp-forums/bp-forums-template.php
r9037 r9260 296 296 'prev_text' => _x( '←', 'Forum topic pagination previous text', 'buddypress' ), 297 297 'next_text' => _x( '→', 'Forum topic pagination next text', 'buddypress' ), 298 'mid_size' => 1 298 'mid_size' => 1, 299 'add_args' => array(), 299 300 ) ); 300 301 } … … 568 569 'prev_text' => _x( '←', 'Forum topic pagination previous text', 'buddypress' ), 569 570 'next_text' => _x( '→', 'Forum topic pagination next text', 'buddypress' ), 570 'mid_size' => 1 571 'mid_size' => 1, 572 'add_args' => array(), 571 573 ) ); 572 574 … … 1736 1738 'prev_text' => _x( '←', 'Forum thread pagination previous text', 'buddypress' ), 1737 1739 'next_text' => _x( '→', 'Forum thread pagination next text', 'buddypress' ), 1738 'mid_size' => 1 1740 'mid_size' => 1, 1741 'add_args' => array(), 1739 1742 ) ); 1740 1743 -
trunk/src/bp-groups/bp-groups-template.php
r9221 r9260 311 311 if ( (int) $this->total_group_count && (int) $this->pag_num ) { 312 312 $pag_args = array( 313 $page_arg => '%#%', 314 'num' => $this->pag_num, 315 'sortby' => $this->sort_by, 316 'order' => $this->order, 313 $page_arg => '%#%' 317 314 ); 318 315 … … 323 320 } 324 321 322 $add_args = array( 323 'num' => $this->pag_num, 324 'sortby' => $this->sort_by, 325 'order' => $this->order, 326 ); 327 325 328 if ( ! empty( $search_terms ) ) { 326 $ pag_args['s'] = $search_terms;329 $add_args['s'] = urlencode( $search_terms ); 327 330 } 328 331 … … 334 337 'prev_text' => _x( '←', 'Group pagination previous text', 'buddypress' ), 335 338 'next_text' => _x( '→', 'Group pagination next text', 'buddypress' ), 336 'mid_size' => 1 339 'mid_size' => 1, 340 'add_args' => $add_args, 337 341 ) ); 338 342 } … … 3039 3043 3040 3044 $this->pag_links = paginate_links( array( 3041 'base' => add_query_arg( array( 'mlpage' => '%#%' ), $base_url ),3042 'format' => '',3043 'total' => !empty( $this->pag_num ) ? ceil( $this->total_member_count / $this->pag_num ) : $this->total_member_count,3044 'current' => $this->pag_page,3045 'base' => add_query_arg( array( 'mlpage' => '%#%' ), $base_url ), 3046 'format' => '', 3047 'total' => ! empty( $this->pag_num ) ? ceil( $this->total_member_count / $this->pag_num ) : $this->total_member_count, 3048 'current' => $this->pag_page, 3045 3049 'prev_text' => '←', 3046 3050 'next_text' => '→', 3047 'mid_size' => 1 3051 'mid_size' => 1, 3052 'add_args' => array(), 3048 3053 )); 3049 3054 } … … 4070 4075 4071 4076 $this->pag_links = paginate_links( array( 4072 'base' => add_query_arg( 'mrpage', '%#%' ),4073 'format' => '',4074 'total' => ceil( $this->total_request_count / $this->pag_num ),4075 'current' => $this->pag_page,4077 'base' => add_query_arg( 'mrpage', '%#%' ), 4078 'format' => '', 4079 'total' => ceil( $this->total_request_count / $this->pag_num ), 4080 'current' => $this->pag_page, 4076 4081 'prev_text' => '←', 4077 4082 'next_text' => '→', 4078 'mid_size' => 1 4083 'mid_size' => 1, 4084 'add_args' => array(), 4079 4085 ) ); 4080 4086 } … … 4322 4328 'next_text' => '→', 4323 4329 'mid_size' => 1, 4330 'add_args' => array(), 4324 4331 ) ); 4325 4332 } else { -
trunk/src/bp-members/bp-members-template.php
r9210 r9260 276 276 } 277 277 278 /** 279 * Defaults to an empty array to make sure paginate_links() 280 * won't add the $page_arg to the links which would break 281 * pagination in case javascript is disabled. 282 */ 283 $add_args = array(); 284 278 285 if ( ! empty( $search_terms ) ) { 279 $ pag_args['s'] = urlencode( $search_terms );286 $add_args['s'] = urlencode( $search_terms ); 280 287 } 281 288 … … 287 294 'prev_text' => _x( '←', 'Member pagination previous text', 'buddypress' ), 288 295 'next_text' => _x( '→', 'Member pagination next text', 'buddypress' ), 289 'mid_size' => 1 296 'mid_size' => 1, 297 'add_args' => $add_args, 290 298 ) ); 291 299 } -
trunk/src/bp-messages/bp-messages-template.php
r9240 r9260 184 184 } 185 185 186 $add_args = array(); 187 186 188 if ( ! empty( $this->search_terms ) ) { 187 $ pag_args['s'] = $this->search_terms;189 $add_args['s'] = $this->search_terms; 188 190 } 189 191 … … 195 197 'prev_text' => _x( '←', 'Message pagination previous text', 'buddypress' ), 196 198 'next_text' => _x( '→', 'Message pagination next text', 'buddypress' ), 197 'mid_size' => 1 199 'mid_size' => 1, 200 'add_args' => $add_args, 198 201 ) ); 199 202 } -
trunk/src/bp-notifications/bp-notifications-template.php
r9143 r9260 302 302 303 303 if ( (int) $this->total_notification_count && (int) $this->pag_num ) { 304 $add_args = array( 305 'sort_order' => $this->sort_order, 306 ); 307 304 308 $this->pag_links = paginate_links( array( 305 309 'base' => add_query_arg( $this->page_arg, '%#%' ), … … 310 314 'next_text' => _x( '→', 'Notifications pagination next text', 'buddypress' ), 311 315 'mid_size' => 1, 316 'add_args' => $add_args, 312 317 ) ); 313 318
Note: See TracChangeset
for help on using the changeset viewer.