Changeset 13100 for trunk/wp-admin/edit-comments.php
- Timestamp:
- 02/13/2010 08:49:27 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-comments.php
r12789 r13100 193 193 194 194 foreach ( $stati as $status => $label ) { 195 $class = ''; 196 197 if ( $status == $comment_status ) 198 $class = ' class="current"'; 195 $class = ( $status == $comment_status ) ? ' class="current"' : ''; 196 199 197 if ( !isset( $num_comments->$status ) ) 200 198 $num_comments->$status = 10; 199 if ( empty( $num_comments->$status ) ) 200 continue; 201 201 $link = add_query_arg( 'comment_status', $status, $link ); 202 202 if ( $post_id ) … … 271 271 <div class="tablenav"> 272 272 273 <?php if ( $comments ) { ?> 273 274 <?php if ( $page_links ) : ?> 274 275 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s', … … 347 348 <div class="clear"></div> 348 349 349 <?php if ( $comments ) { ?>350 350 <table class="widefat comments fixed" cellspacing="0"> 351 351 <thead> … … 437 437 438 438 <?php } else { ?> 439 <p><?php _e('No results found.') ?></p>439 <p><?php _e('No comments found.') ?></p> 440 440 </form> 441 441
Note: See TracChangeset
for help on using the changeset viewer.