From 2aa9ee9d0889c9fda54b28ffd93066c13908b6c7 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Fri, 21 Mar 2008 20:03:31 +0000 Subject: [PATCH] Always show 15 media files per page in the media manager (do not use front-of-house ppp setting). props Denis-de-Bernardy. fixes #6334 git-svn-id: http://svn.automattic.com/wordpress/trunk@7458 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 41cf3548af..63a77f4277 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -567,6 +567,7 @@ function wp_edit_attachments_query( $q = false ) { $q['cat'] = (int) $q['cat']; $q['post_type'] = 'attachment'; $q['post_status'] = 'any'; + $q['posts_per_page'] = 15; $post_mime_types = array( // array( adj, noun ) 'image' => array(__('Images'), __('Manage Images'), __ngettext_noop('Image (%s)', 'Images (%s)')), 'audio' => array(__('Audio'), __('Manage Audio'), __ngettext_noop('Audio (%s)', 'Audio (%s)')),