Changeset 546 for trunk/wp-admin/edit.php
- Timestamp:
- 11/12/2003 03:22:47 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r488 r546 244 244 ?> 245 245 <p> 246 <strong><?php the_time('Y/m/d @ H:i:s'); ?></strong> [ <a href="edit.php?p=<?php echo $id ?>&c=1"><?php comments_number('no comments', '1 comment', "% comments" ) ?></a>246 <strong><?php the_time('Y/m/d @ H:i:s'); ?></strong> [ <a href="edit.php?p=<?php echo $id ?>&c=1"><?php comments_number('no comments', '1 comment', "% comments", true) ?></a> 247 247 <?php 248 248 if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) { … … 279 279 <!-- comment --> 280 280 <li> 281 <?php 282 $comment_status = wp_get_comment_status($comment->comment_ID); 283 284 if ("unapproved" == $comment_status) { 285 echo "<span class=\"unapproved\">"; 286 } 287 ?> 281 288 <?php comment_date('Y/m/d') ?> @ <?php comment_time() ?> 282 289 <?php 283 290 if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) { 284 291 echo "[ <a href=\"wp-post.php?action=editcomment&comment=".$comment->comment_ID."\">Edit</a>"; 285 echo " - <a href=\"wp-post.php?action=deletecomment&p=".$post->ID."&comment=".$comment->comment_ID."\" onclick=\"return confirm('You are about to delete this comment by \'".$comment->comment_author."\'\\n \'OK\' to delete, \'Cancel\' to stop.')\">Delete</a> ]"; 292 echo " - <a href=\"wp-post.php?action=deletecomment&p=".$post->ID."&comment=".$comment->comment_ID."\" onclick=\"return confirm('You are about to delete this comment by \'".$comment->comment_author."\'\\n \'OK\' to delete, \'Cancel\' to stop.')\">Delete</a> "; 293 if ( ('none' != $comment_status) && ($user_level >= 3) ) { 294 if ('approved' == wp_get_comment_status($comment->comment_ID)) { 295 echo " - <a href=\"wp-post.php?action=unapprovecomment&p=".$post->ID."&comment=".$comment->comment_ID."\">Unapprove</a> "; 296 } else { 297 echo " - <a href=\"wp-post.php?action=approvecomment&p=".$post->ID."&comment=".$comment->comment_ID."\">Approve</a> "; 298 } 299 } 300 echo "]"; 286 301 } // end if any comments to show 287 302 ?> … … 289 304 <strong><?php comment_author() ?> ( <?php comment_author_email_link() ?> / <?php comment_author_url_link() ?> )</strong> (IP: <?php comment_author_IP() ?>) 290 305 <?php comment_text() ?> 306 <?php 307 if ("unapproved" == $comment_status) { 308 echo "</span>"; 309 } 310 ?> 291 311 </li> 292 312 <!-- /comment -->
Note: See TracChangeset
for help on using the changeset viewer.