Changeset 7057 for trunk/wp-admin/edit.php
- Timestamp:
- 02/27/2008 12:46:27 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r7046 r7057 34 34 $title = __('Posts'); 35 35 $parent_file = 'edit.php'; 36 wp_enqueue_script( 'admin-posts' );37 36 wp_enqueue_script('admin-forms'); 38 37 if ( 1 == $_GET['c'] ) … … 40 39 require_once('admin-header.php'); 41 40 42 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";' ) );43 41 list($post_stati, $avail_post_stati) = wp_edit_posts_query(); 44 $wp_query->max_num_pages = ceil( $wp_query->found_posts / 15 ); // We grab 20 but only show 15 ( 5 more for ajax extra )45 42 46 43 if ( !isset( $_GET['paged'] ) ) … … 180 177 </form> 181 178 182 <form action="" method="post" id="get-extra-posts" class="add:the-extra-list:" style="display:none">183 <?php wp_nonce_field( 'add-post', '_ajax_nonce', false ); ?>184 </form>185 186 179 <div id="ajax-response"></div> 187 180
Note: See TracChangeset
for help on using the changeset viewer.