| 97 | | echo " | <a href=\"post.php?action=editcomment&comment=".$comment->comment_ID."\">" . __('Edit Comment') . "</a>"; |
| 98 | | echo " | <a href=\"post.php?action=deletecomment&p=".$comment->comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . sprintf(__("You are about to delete this comment by "%s".\\n"Cancel" to stop, "OK" to delete."), wp_specialchars( $comment->comment_author, 1 )) . "' );\">" . __('Delete Comment') . "</a> — "; |
| | 98 | echo " | <a href=\"post.php?action=editcomment&comment=".$comment->comment_ID."\">" . __('Edit') . "</a>"; |
| | 99 | echo " | <a href=\"post.php?action=deletecomment&p=".$comment->comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . sprintf(__("You are about to delete this comment by "%s".\\n"Cancel" to stop, "OK" to delete."), wp_specialchars( $comment->comment_author, 1 )) . "' );\">" . __('Delete') . "</a> — "; |
| 101 | | if ( current_user_can('edit_post', $comment->comment_post_ID) ) { |
| 102 | | $post_title = $wpdb->get_var("SELECT post_title FROM $wpdb->posts WHERE ID = $comment->comment_post_ID"); |
| 103 | | $post_title = ('' == $post_title) ? "# $comment->comment_post_ID" : $post_title; |
| 104 | | ?> <a href="post.php?action=edit&post=<?php echo $comment->comment_post_ID; ?>"><?php printf(__('Edit Post “%s”'), stripslashes($post_title)); ?></a> |
| 105 | | <?php } ?> |
| 106 | | | <a href="<?php echo get_permalink($comment->comment_post_ID); ?>"><?php _e('View Post') ?></a></p> |
| | 102 | $post_title = $wpdb->get_var("SELECT post_title FROM $wpdb->posts WHERE ID = $comment->comment_post_ID"); |
| | 103 | $post_title = ('' == $post_title) ? "# $comment->comment_post_ID" : $post_title; |
| | 104 | ?> |
| | 105 | Posted On <a href="<?php echo get_permalink($comment->comment_post_ID); ?>"><?php echo stripslashes($post_title) ?></a></p> |