Make WordPress Core

Changeset 386


Ignore:
Timestamp:
09/25/2003 03:15:23 AM (22 years ago)
Author:
alex_t_king
Message:

added link to post on each comment

File:
1 edited

Legend:

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

    r382 r386  
    144144        <p>
    145145            <?php comment_date('Y/m/d') ?> @ <?php comment_time() ?>
     146            [ <a href="b2edit.php?p=<?php echo $comment->comment_post_ID; ?>&c=1">View Post</a>
    146147            <?php
    147148            if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) {
    148                 echo "[ <a href=\"b2edit.php?action=editcomment&amp;comment=".$comment->comment_ID."\">Edit</a>";
    149                 echo " - <a href=\"b2edit.php?action=deletecomment&amp;p=".$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> ]";
     149                echo " - <a href=\"b2edit.php?action=editcomment&amp;comment=".$comment->comment_ID."\">Edit</a>";
     150                echo " - <a href=\"b2edit.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>";
    150151            } // end if any comments to show
    151152            ?>
     153            ]
    152154            <br />
    153155            <strong><?php comment_author() ?> ( <?php comment_author_email_link() ?> / <?php comment_author_url_link() ?> )</strong> (IP: <?php comment_author_IP() ?>)
Note: See TracChangeset for help on using the changeset viewer.