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

git-svn-id: https://develop.svn.wordpress.org/trunk@9891 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-11-26 00:36:25 +00:00
parent 41e0b87c8f
commit 57b12e5705
3 changed files with 19 additions and 25 deletions

View File

@@ -165,6 +165,8 @@ endif;
<input type="hidden" name="post_status" value="<?php echo attribute_escape($_GET['post_status']) ?>" />
<?php endif; ?>
<?php if ($posts) { ?>
<div class="tablenav">
<?php
@@ -208,10 +210,6 @@ if ( $page_links ) : ?>
<div class="clear"></div>
<?php
if ($posts) {
?>
<table class="widefat page fixed" cellspacing="0">
<thead>
<tr>
@@ -248,21 +246,19 @@ if ( $page_links )
<br class="clear" />
</div>
<?php } else { ?>
<div class="clear"></div>
<p><?php _e('No pages found.') ?></p>
<?php
} // end if ($posts)
?>
</form>
<?php inline_edit_row( 'page' ) ?>
<div id="ajax-response"></div>
<?php
} else {
?>
</form>
<p><?php _e('No pages found.') ?></p>
<?php
} // end if ($posts)
?>
<?php