Only hide the bulk actions and not the filters when no comments. Fixes #13193.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3b38c7671e
commit
a58d8f0c13
|
@ -293,7 +293,6 @@ $page_links = paginate_links( array(
|
|||
|
||||
<div class="tablenav">
|
||||
|
||||
<?php if ( $comments ) { ?>
|
||||
<?php if ( $page_links ) : ?>
|
||||
<div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s',
|
||||
number_format_i18n( $start + 1 ),
|
||||
|
@ -306,6 +305,7 @@ $page_links = paginate_links( array(
|
|||
<input type="hidden" name="_page" value="<?php echo esc_attr($page); ?>" />
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( $comments ) : ?>
|
||||
<div class="alignleft actions">
|
||||
<select name="action">
|
||||
<option value="-1" selected="selected"><?php _e('Bulk Actions') ?></option>
|
||||
|
@ -332,6 +332,8 @@ $page_links = paginate_links( array(
|
|||
<input type="submit" name="doaction" id="doaction" value="<?php esc_attr_e('Apply'); ?>" class="button-secondary apply" />
|
||||
<?php wp_nonce_field('bulk-comments'); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<select name="comment_type">
|
||||
<option value="all"><?php _e('Show all comment types'); ?></option>
|
||||
<?php
|
||||
|
@ -369,6 +371,7 @@ if ( ( 'spam' == $comment_status || 'trash' == $comment_status) && current_user_
|
|||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
<?php if ( $comments ) { ?>
|
||||
|
||||
<table class="widefat comments fixed" cellspacing="0">
|
||||
<thead>
|
||||
|
|
Loading…
Reference in New Issue