Make WordPress Core


Ignore:
Timestamp:
10/31/2010 01:17:00 AM (14 years ago)
Author:
scribu
Message:

Move no_items logic to WP_Comments_Table. See #14579

File:
1 edited

Legend:

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

    r16061 r16108  
    205205    <?php submit_button( __( 'Search Comments' ), 'button', 'submit', false ); ?>
    206206</p>
    207 
    208207<input type="hidden" name="mode" value="<?php echo esc_attr($mode); ?>" />
    209208<?php if ( $post_id ) : ?>
     
    221220<?php } ?>
    222221
    223 <br class="clear" />
    224 
    225 <?php if ( $wp_list_table->has_items() ) { ?>
    226 
    227 <?php $wp_list_table->display_table(); ?>
    228 
    229 <br class="clear" />
    230 </div>
    231 
    232 </form>
    233 
    234 <div id="ajax-response"></div>
    235 
    236 <?php } elseif ( 'moderated' == $comment_status ) { ?>
    237 <p><?php _e('No comments awaiting moderation&hellip; yet.') ?></p>
     222<?php $wp_list_table->display(); ?>
    238223</div>
    239224</form>
    240225
    241 <?php } else { ?>
    242 <p><?php _e('No comments found.') ?></p>
    243 </div>
    244 </form>
    245 
    246 <?php } ?>
    247 </div>
     226<div id="ajax-response"></div>
    248227
    249228<?php
Note: See TracChangeset for help on using the changeset viewer.