Make WordPress Core


Ignore:
Timestamp:
11/26/2008 12:36:25 AM (16 years ago)
Author:
ryan
Message:

Don't show tables when no posts or pages are found. fixes #8346

File:
1 edited

Legend:

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

    r9807 r9891  
    120120
    121121<form id="posts-filter" action="" method="get">
     122
    122123<ul class="subsubsub">
    123124<?php
     
    159160<?php endif; ?>
    160161<input type="hidden" name="mode" value="<?php echo $mode; ?>" />
     162
     163<?php if ( have_posts() ) { ?>
    161164
    162165<div class="tablenav">
     
    264267<br class="clear" />
    265268</div>
     269
     270<?php } else { // have_posts() ?>
     271<div class="clear"></div>
     272<p><?php _e('No posts found') ?></p>
     273<?php } ?>
    266274
    267275</form>
Note: See TracChangeset for help on using the changeset viewer.