1
0
mirror of https://github.com/WordPress/WordPress.git synced 2025-03-30 16:36:59 +02:00

Fix pagination in Media Library after moving items to trash

git-svn-id: http://svn.automattic.com/wordpress/trunk@11924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-09-13 17:58:55 +00:00
parent 2561a6bb45
commit a8ccdb1d62

View File

@ -867,7 +867,7 @@ function wp_edit_attachments_query( $q = false ) {
$q['m'] = isset( $q['m'] ) ? (int) $q['m'] : 0;
$q['cat'] = isset( $q['cat'] ) ? (int) $q['cat'] : 0;
$q['post_type'] = 'attachment';
$q['post_status'] = isset( $q['status'] ) && 'trash' == $q['status'] ? 'trash' : 'any';
$q['post_status'] = isset( $q['status'] ) && 'trash' == $q['status'] ? 'trash' : 'inherit';
$media_per_page = get_user_option('upload_per_page');
if ( empty($media_per_page) )
$media_per_page = 20;