mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user