Make WordPress Core


Ignore:
Timestamp:
11/26/2008 12:36:25 AM (15 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-post-rows.php

    r9735 r9891  
    2323
    2424    <tbody>
    25 <?php
    26 if ( have_posts() ) {
    27     post_rows();
    28 } else {
    29 ?>
    30   <tr>
    31     <td colspan="8"><?php _e('No posts found.') ?></td>
    32   </tr>
    33 <?php
    34 } // end if ( have_posts() )
    35 ?>
     25<?php post_rows(); ?>
    3626    </tbody>
    3727</table>
Note: See TracChangeset for help on using the changeset viewer.