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