Changeset 13247 for trunk/wp-admin/comment.php
- Timestamp:
- 02/20/2010 11:48:38 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/comment.php
r13246 r13247 84 84 } 85 85 86 // No need to re-approve/re-trash/re-spam a comment. 87 if ( $action == str_replace( '1', 'approve', $comment->comment_approved ) ) { 88 wp_redirect( admin_url( 'edit-comments.php?same=' . $comment_id ) ); 89 die(); 90 } 91 86 92 require_once('admin-header.php'); 87 93 … … 117 123 break; 118 124 } 125 126 if ( $comment->comment_approved != '0' ) { // if not unapproved 127 $message = ''; 128 switch ( $comment->comment_approved ) { 129 case '1' : 130 $message = __('This comment is currently approved.'); 131 break; 132 case 'spam' : 133 $message = __('This comment is currently marked as spam.'); 134 break; 135 case 'trash' : 136 $message = __('This comment is currently in the Trash.'); 137 break; 138 } 139 if ( $message ) 140 echo '<div class="updated"><p>' . $message . '</p></div>'; 141 } 119 142 ?> 120 121 143 <p><strong><?php _e('Caution:'); ?></strong> <?php echo $caution_msg; ?></p> 122 144
Note: See TracChangeset
for help on using the changeset viewer.