Make WordPress Core


Ignore:
Timestamp:
11/30/2003 10:13:53 PM (20 years ago)
Author:
saxmatt
Message:

Made status dropdowns radio boxes, more moderation cleanups. Edit section now clean.

File:
1 edited

Legend:

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

    r558 r560  
    3939<ul id="adminmenu2">
    4040    <li><a href="edit.php">Latest Posts</a></li>
    41     <li class="last"><a href="edit-comments.php" class="current">Latest Comments</a></li>
    42     <li><a href="wp-moderation.php">Comments Awaiting Moderation</a></li>
     41    <li><a href="edit-comments.php" class="current">Latest Comments</a></li>
     42    <li class="last"><a href="wp-moderation.php">Comments Awaiting Moderation</a></li>
    4343</ul>
    4444
     
    144144        echo '<ol>';
    145145        foreach ($comments as $comment) {
     146            $comment_status = wp_get_comment_status($comment->comment_ID);
     147            if ('unapproved' == $comment_status) {
     148                echo '<li class="unapproved" style="border-bottom: 1px solid #ccc;">';
     149            } else {
     150                echo '<li style="border-bottom: 1px solid #ccc;">';
     151            }
    146152        ?>     
    147         <li style="border-bottom: 1px solid #ccc;">
    148         <?php
    149             $comment_status = wp_get_comment_status($comment->comment_ID);
    150            
    151             if ("unapproved" == $comment_status) {
    152                 echo "<span class=\"unapproved\">";
    153             }
    154         ?>
    155         <p><strong>Name:</strong> <?php comment_author() ?> <?php if ($comment->comment_author_email) { ?>| <strong>Email:</strong> <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_email) { ?> | <strong>URI:</strong> <?php comment_author_url_link() ?> <?php } ?>| <strong>IP:</strong> <?php comment_author_IP() ?></p>
     153        <p><strong>Name:</strong> <?php comment_author() ?> <?php if ($comment->comment_author_email) { ?>| <strong>Email:</strong> <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_email) { ?> | <strong>URI:</strong> <?php comment_author_url_link() ?> <?php } ?>| <strong>IP:</strong> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></p>
    156154       
    157155        <?php comment_text() ?>
     
    161159                echo " | <a href=\"wp-post.php?action=deletecomment&amp;p=".$comment->comment_post_ID."&amp;comment=".$comment->comment_ID."\" onclick=\"return confirm('You are about to delete this comment by \'".$comment->comment_author."\'\\n  \'Cancel\' to stop, \'OK\' to delete.')\">Delete</a> | ";
    162160            } // end if any comments to show
    163             ?> <a href="edit.php?p=<?php echo $comment->comment_post_ID; ?>">View Post</a></p>
    164         <?php
    165             if ("unapproved" == $comment_status) {
    166                 echo "</span>";
    167             }
    168         ?>
     161            ?> <a href="edit.php?p=<?php echo $comment->comment_post_ID; ?>">Edit Post</a></p>
    169162        </li>
    170163
Note: See TracChangeset for help on using the changeset viewer.