Make WordPress Core


Ignore:
Timestamp:
11/30/2008 01:17:27 PM (16 years ago)
Author:
azaozz
Message:

Fix Media Library when empty, fixes #8430

File:
1 edited

Legend:

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

    r9878 r9980  
    88
    99if ( ! defined('ABSPATH') ) die();
    10 ?>
     10
     11if ( have_posts() ) { ?>
    1112<table class="widefat fixed" cellspacing="0">
    1213    <thead>
     
    2425    <tbody id="the-list" class="list:post">
    2526<?php
    26 if ( have_posts() ) {
    2727add_filter('the_title','wp_specialchars');
    2828$alt = '';
     
    196196?>
    197197    </tr>
    198 <?php
    199 endwhile;
    200 } else {
    201 ?>
    202   <tr>
    203     <td colspan="8"><?php _e('No posts found.') ?></td>
    204   </tr>
    205 <?php
    206 } // end if ( have_posts() )
    207 ?>
     198<?php endwhile; ?>
    208199    </tbody>
    209200</table>
     201<?php } else { ?>
     202
     203<p><?php _e('No posts found.') ?></p>
     204
     205<?php
     206} // end if ( have_posts() )
     207?>
     208   
Note: See TracChangeset for help on using the changeset viewer.