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

@@ -22,16 +22,6 @@ if ( ! defined('ABSPATH') ) die();
</tfoot>
<tbody>
<?php
if ( have_posts() ) {
post_rows();
} else {
?>
<tr>
<td colspan="8"><?php _e('No posts found.') ?></td>
</tr>
<?php
} // end if ( have_posts() )
?>
<?php post_rows(); ?>
</tbody>
</table>
</table>