mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Remove remnants of infinite posts features. Props mdawaffe. fixes #6264
git-svn-id: https://develop.svn.wordpress.org/trunk@7359 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+1
-4
@@ -33,10 +33,7 @@ $title = __('Media Library');
|
||||
$parent_file = 'edit.php';
|
||||
wp_enqueue_script( 'admin-forms' );
|
||||
|
||||
if ( isset($_GET['paged']) && $start = ( intval($_GET['paged']) - 1 ) * 15 )
|
||||
add_filter( 'post_limits', $limit_filter = create_function( '$a', "return 'LIMIT $start, 15';" ) );
|
||||
list($post_mime_types, $avail_post_mime_types) = wp_edit_attachments_query();
|
||||
$wp_query->max_num_pages = ceil( $wp_query->found_posts / 15 ); // We grab 20 but only show 15 ( 5 more for ajax extra )
|
||||
|
||||
if ( is_singular() )
|
||||
wp_enqueue_script( 'admin-comments' );
|
||||
@@ -128,7 +125,7 @@ endif;
|
||||
$page_links = paginate_links( array(
|
||||
'base' => add_query_arg( 'paged', '%#%' ),
|
||||
'format' => '',
|
||||
'total' => ceil($wp_query->found_posts / 15),
|
||||
'total' => $wp_query->max_num_pages,
|
||||
'current' => $_GET['paged']
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user