Ticket #16187: 16187.diff
File 16187.diff, 1.2 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/class-wp-media-list-table.php
28 28 if ( !empty( $lost ) ) 29 29 $q['post__in'] = implode( ',', $lost ); 30 30 31 if( $q['paged'] > $wp_query->max_num_pages ) 32 $q['paged'] = $wp_query->max_num_pages; 33 31 34 list( $post_mime_types, $avail_post_mime_types ) = wp_edit_attachments_query( $q ); 32 35 33 36 $this->is_trash = isset( $_REQUEST['status'] ) && 'trash' == $_REQUEST['status']; -
wp-admin/includes/class-wp-list-table.php
436 436 function get_pagenum() { 437 437 $pagenum = isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 0; 438 438 439 if( isset( $this->_pagination_args['total_pages'] ) && $pagenum > $this->_pagination_args['total_pages'] ) 440 $pagenum = $this->_pagination_args['total_pages']; 441 439 442 return max( 1, $pagenum ); 440 443 } 441 444