Make WordPress Core


Ignore:
Timestamp:
03/28/2005 02:34:16 AM (20 years ago)
Author:
ryan
Message:

Add paging to Manage->Posts. http://mosquito.wordpress.org/view.php?id=1177

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit.php

    r2452 r2481  
    6767<h2>
    6868<?php
    69 if ( $_GET['m'] ) {
    70     echo $month[substr( $_GET['m'], 4, 2 )] . ' ' . substr( $_GET['m'], 0, 4 );
    71 } elseif ( isset( $_GET['s'] ) ) {
     69$what_to_show = 'posts';
     70$posts_per_page = 15;
     71$posts_per_archive_page = -1;
     72
     73include(ABSPATH.'wp-blog-header.php');
     74
     75if ( is_month() ) {
     76    single_month_title(' ');
     77} elseif ( is_search() ) {
    7278    printf(__('Search for &#8220;%s&#8221;'), wp_specialchars($_GET['s']) );
    7379} else {
    74     _e('Last 15 Posts');
     80    if ( ! is_paged() || get_query_var('paged') == 1 )
     81        _e('Last 15 Posts');
     82    else
     83        _e('Previous Posts');
    7584}
    7685?>
     
    141150    </tr>
    142151<?php
    143 $what_to_show = 'posts';
    144 if ( empty($_GET['m']) || 0 == $_GET['m'] && empty($_GET['s']) ) {
    145   $showposts = 15;
    146 } else {
    147   $nopaging = true;
    148 }
    149 
    150 include(ABSPATH.'wp-blog-header.php');
    151 
    152152if ($posts) {
    153153$bgcolor = '';
     
    239239?>
    240240</table>
     241
     242<div class="navigation">
     243<div class="alignleft"><?php next_posts_link(__('&laquo; Previous Entries')) ?></div>
     244<div class="alignright"><?php previous_posts_link(__('Next Entries &raquo;')) ?></div>
     245</div>
     246
    241247<?php
    242248if ( 1 == count($posts) ) {
Note: See TracChangeset for help on using the changeset viewer.