Changeset 6981
- Timestamp:
- 02/22/2008 05:33:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upload.php
r6950 r6981 39 39 require_once('admin-header.php'); 40 40 41 add_filter( 'post_limits', $limit_filter = create_function( '$a', ' $b = split(" ",$a); if ( !isset($b[2]) ) return $a; $start = intval(trim($b[1])) / 20 * 15; if ( !is_int($start) ) return $a; return "LIMIT $start, 20";' ) );41 add_filter( 'post_limits', $limit_filter = create_function( '$a', 'if ( empty($_GET["paged"]) ) $_GET["paged"] = 1; $start = ( intval($_GET["paged"]) - 1 ) * 15; return "LIMIT $start, 20";' ) ); 42 42 list($post_mime_types, $avail_post_mime_types) = wp_edit_attachments_query(); 43 43 $wp_query->max_num_pages = ceil( $wp_query->found_posts / 15 ); // We grab 20 but only show 15 ( 5 more for ajax extra )
Note: See TracChangeset
for help on using the changeset viewer.