Make WordPress Core


Ignore:
Timestamp:
02/23/2008 08:33:44 AM (19 years ago)
Author:
ryan
Message:

Manage comments rework. WIP

File:
1 edited

Legend:

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

    r6993 r6994  
    5151        $comment_status = '';
    5252$status_links = array();
    53 $num_posts = wp_count_posts('post');
    54 $stati = array('moderated' => __('Awaiting Moderation'), 'approved' => __('Approved'));
     53$num_comments = wp_count_comments();
     54$stati = array('moderated' => sprintf(__('Awaiting Moderation (%s)'), $num_comments->moderated), 'approved' => __('Approved'));
    5555foreach ( $stati as $status => $label ) {
    5656        $class = '';
     
    7575<input type="hidden" name="mode" value="<?php echo $mode; ?>" />
    7676
    77 <p><a href="?mode=view"><?php _e('View Mode') ?></a> | <a href="?mode=edit"><?php _e('Mass Edit Mode') ?></a></p>
     77<p><a href="?mode=view"><?php _e('Detail View') ?></a> | <a href="?mode=edit"><?php _e('List View') ?></a></p>
    7878
    7979<?php
     
    148148    <td style="text-align: center; vertical-align: text-top"><?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) { ?><input type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" /><?php } ?></td>
    149149    <td style="vertical-align: text-top">
    150     <?php comment_author_link(); ?><br />
     150    <p><strong class="comment-author"><?php comment_author(); ?></strong><br />
    151151    <?php if ( !empty($author_url) ) : ?>
    152152    <a href="<?php echo $author_url ?>"><?php echo $author_url; ?></a> |
Note: See TracChangeset for help on using the changeset viewer.