Changeset 7968
- Timestamp:
- 02/22/2014 09:40:39 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages/bp-messages-classes.php
r7338 r7968 520 520 global $wpdb, $bp; 521 521 522 $ defaults =array(522 $r = wp_parse_args( $args, array( 523 523 'pag_num' => 20, // Number of notices per page 524 524 'pag_page' => 1 // Page number 525 ); 526 $r = wp_parse_args( $args, $defaults ); 527 extract( $r ); 525 ) ); 528 526 529 527 $limit_sql = ''; 530 if ( (int) $ pag_num>= 0 ) {531 $limit_sql = $wpdb->prepare( "LIMIT %d, %d", (int) ( ( $ pag_page - 1 ) * $pag_num ), (int) $pag_num);528 if ( (int) $r['pag_num'] >= 0 ) { 529 $limit_sql = $wpdb->prepare( "LIMIT %d, %d", (int) ( ( $r['pag_page'] - 1 ) * $r['pag_num'] ), (int) $r['pag_num'] ); 532 530 } 533 531
Note: See TracChangeset
for help on using the changeset viewer.