| 62 | | $status_links = array(); |
| 63 | | $num_comments = wp_count_comments(); |
| 64 | | $stati = array('moderated' => sprintf(__('Awaiting Moderation (%s)'), $num_comments->moderated), 'approved' => __('Approved')); |
| 65 | | foreach ( $stati as $status => $label ) { |
| 66 | | $class = ''; |
| 67 | | |
| 68 | | if ( $status == $comment_status ) |
| 69 | | $class = ' class="current"'; |
| 70 | | |
| 71 | | $status_links[] = "<li><a href=\"edit-comments.php?comment_status=$status\"$class>" . $label . '</a>'; |
| 72 | | } |
| 73 | | $class = ( '' === $comment_status ) ? ' class="current"' : ''; |
| 74 | | $status_links[] = "<li><a href=\"edit-comments.php\"$class>".__('All Comments')."</a>"; |
| 75 | | echo implode(' | </li>', $status_links) . '</li>'; |
| 76 | | unset($status_links); |
| 77 | | ?> |
| 78 | | </ul> |
| 79 | | |
| 80 | | <?php |
| | 87 | <ul class="subsubsub"> |
| | 88 | <?php |
| | 89 | $status_links = array(); |
| | 90 | $num_comments = wp_count_comments(); |
| | 91 | $stati = array('moderated' => sprintf(__('Awaiting Moderation (%s)'), $num_comments->moderated), 'approved' => __('Approved')); |
| | 92 | foreach ( $stati as $status => $label ) { |
| | 93 | $class = ''; |
| | 94 | |
| | 95 | if ( $status == $comment_status ) |
| | 96 | $class = ' class="current"'; |
| | 97 | |
| | 98 | $status_links[] = "<li><a href=\"edit-comments.php?comment_status=$status\"$class>" . $label . '</a>'; |
| | 99 | } |
| | 100 | $class = ( '' === $comment_status ) ? ' class="current"' : ''; |
| | 101 | $status_links[] = "<li><a href=\"edit-comments.php\"$class>".__('All Comments')."</a>"; |
| | 102 | echo implode(' | </li>', $status_links) . '</li>'; |
| | 103 | unset($status_links); |
| | 104 | ?> |
| | 105 | </ul> |
| | 106 | |