Changeset 7359
- Timestamp:
- 03/17/2008 11:02:12 PM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-attachment-rows.php
r7307 r7359 20 20 <tbody id="the-list" class="list:post"> 21 21 <?php 22 $i_post = 0;23 22 if ( have_posts() ) { 24 23 $bgcolor = ''; 25 24 add_filter('the_title','wp_specialchars'); 26 while (have_posts()) : the_post(); $i_post++; 27 if ( 16 == $i_post ) 28 echo "\t</tbody>\n\t<tbody id='the-extra-list' class='list:post' style='display: none'>\n"; // Hack! 29 $class = ( $i_post > 15 || 'alternate' == $class) ? '' : 'alternate'; 25 while (have_posts()) : the_post(); 26 $class = 'alternate' == $class ? '' : 'alternate'; 30 27 global $current_user; 31 28 $post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' ); -
trunk/wp-admin/edit-post-rows.php
r7353 r7359 20 20 <tbody> 21 21 <?php 22 $i_post = 0;23 22 if ( have_posts() ) { 24 23 $bgcolor = ''; 25 24 add_filter('the_title','wp_specialchars'); 26 while (have_posts()) : the_post(); $i_post++;27 $class = ( $i_post > 15 || 'alternate' == $class)? '' : 'alternate';25 while (have_posts()) : the_post(); 26 $class = 'alternate' == $class ? '' : 'alternate'; 28 27 global $current_user; 29 28 $post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' ); -
trunk/wp-admin/edit.php
r7304 r7359 127 127 'base' => add_query_arg( 'paged', '%#%' ), 128 128 'format' => '', 129 'total' => ceil($wp_query->found_posts / 15),129 'total' => $wp_query->max_num_pages, 130 130 'current' => $_GET['paged'] 131 131 )); -
trunk/wp-admin/upload.php
r7358 r7359 34 34 wp_enqueue_script( 'admin-forms' ); 35 35 36 if ( isset($_GET['paged']) && $start = ( intval($_GET['paged']) - 1 ) * 15 )37 add_filter( 'post_limits', $limit_filter = create_function( '$a', "return 'LIMIT $start, 15';" ) );38 36 list($post_mime_types, $avail_post_mime_types) = wp_edit_attachments_query(); 39 $wp_query->max_num_pages = ceil( $wp_query->found_posts / 15 ); // We grab 20 but only show 15 ( 5 more for ajax extra )40 37 41 38 if ( is_singular() ) … … 129 126 'base' => add_query_arg( 'paged', '%#%' ), 130 127 'format' => '', 131 'total' => ceil($wp_query->found_posts / 15),128 'total' => $wp_query->max_num_pages, 132 129 'current' => $_GET['paged'] 133 130 ));
Note: See TracChangeset
for help on using the changeset viewer.