mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +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:
@@ -119,6 +119,7 @@ $_SERVER['REQUEST_URI'] = remove_query_arg( array('locked', 'skipped', 'updated'
|
||||
<?php } ?>
|
||||
|
||||
<form id="posts-filter" action="" method="get">
|
||||
|
||||
<ul class="subsubsub">
|
||||
<?php
|
||||
if ( empty($locked_post_status) ) :
|
||||
@@ -159,6 +160,8 @@ endif;
|
||||
<?php endif; ?>
|
||||
<input type="hidden" name="mode" value="<?php echo $mode; ?>" />
|
||||
|
||||
<?php if ( have_posts() ) { ?>
|
||||
|
||||
<div class="tablenav">
|
||||
<?php
|
||||
$page_links = paginate_links( array(
|
||||
@@ -264,6 +267,11 @@ if ( $page_links )
|
||||
<br class="clear" />
|
||||
</div>
|
||||
|
||||
<?php } else { // have_posts() ?>
|
||||
<div class="clear"></div>
|
||||
<p><?php _e('No posts found') ?></p>
|
||||
<?php } ?>
|
||||
|
||||
</form>
|
||||
|
||||
<?php inline_edit_row( 'post' ); ?>
|
||||
|
||||
Reference in New Issue
Block a user