From d85d717aedbc7690e2a450e40dab8fcebd94b38c Mon Sep 17 00:00:00 2001
From: donncha comment_author_email) { ?>| comment_author_url && 'http://' != $comment->comment_author_url) { ?> | | comment_author_email) { ?>| comment_author_url && 'http://' != $comment->comment_author_url) { ?> | | — [
comment_post_ID) ) {
- echo " " . __('Edit') . '';
- $url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$id", "delete-comment_$id" ) );
- echo " | " . __('Delete') . ' ';
+ echo " " . __('Edit') . '';
+ echo ' | comment_author)) . "', theCommentList );\">" . __('Delete') . ' ';
if ( ('none' != $comment_status) && ( current_user_can('moderate_comments') ) ) {
- $url = clean_url( wp_nonce_url( "comment.php?action=unapprovecomment&p=$comment->comment_post_ID&c=$id", "unapprove-comment_$id" ) );
- echo " | " . __('Unapprove') . ' ';
- $url = clean_url( wp_nonce_url( "comment.php?action=approvecomment&p=$comment->comment_post_ID&c=$id", "approve-comment_$id" ) );
- echo " | " . __('Approve') . ' ';
+ echo ' | ' . __('Unapprove') . ' ';
+ echo ' | ' . __('Approve') . ' ';
}
- $url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&dt=spam&p=$comment->comment_post_ID&c=$id", "delete-comment_$id" ) );
- echo " | " . __('Spam') . ' ';
+ echo " | comment_post_ID . "&c=" . $comment->comment_ID, 'delete-comment_' . $comment->comment_ID) . "\" onclick=\"return deleteSomething( 'comment-as-spam', $comment->comment_ID, '" . js_escape(sprintf(__("You are about to mark as spam this comment by '%s'.\n'Cancel' to stop, 'OK' to mark as spam."), $comment->comment_author)) . "', theCommentList );\">" . __('Spam') . " ";
}
-if ( !is_single() ) {
- $post = get_post($comment->comment_post_ID, OBJECT, 'display');
- $post_title = wp_specialchars( $post->post_title, 'double' );
- $post_title = ('' == $post_title) ? "# $comment->comment_post_ID" : $post_title;
+$post = get_post($comment->comment_post_ID, OBJECT, 'display');
+$post_title = wp_specialchars( $post->post_title, 'double' );
+$post_title = ('' == $post_title) ? "# $comment->comment_post_ID" : $post_title;
?>
- ] —
-
-term_id ) . "' class='delete:the-list:cat-$category->term_id delete'>".__( 'Delete' )."";
+ $edit .= " term_id ) . "' onclick=\"return deleteSomething( 'cat', $category->term_id, '" . js_escape(sprintf( __("You are about to delete the category '%s'.\nAll posts that were only assigned to this category will be assigned to the '%s' category.\nAll links that were only assigned to this category will be assigned to the '%s' category.\n'OK' to delete, 'Cancel' to stop." ), $category->name, get_catname( $default_cat_id ), get_catname( $default_link_cat_id ) )) . "' );\" class='delete'>".__( 'Delete' )."";
else
$edit .= " ".__( "Default" );
} else
@@ -164,31 +164,6 @@ function dropdown_link_categories( $default = 0 ) {
}
}
-// define the columns to display, the syntax is 'internal name' => 'display name'
-function wp_manage_posts_columns() {
- $posts_columns = array();
- $posts_columns['id'] = '
post_modified ) _e('Unpublished'); else echo mysql2date( __('Y-m-d g:i a'), $post->post_modified ); ?>
-
+
" . __( 'Edit' ) . ""; } ?>
- " . __( 'Delete' ) . ""; } ?>
+ " . __( 'Delete' ) . ""; } ?>
comment_ID;
$class = '';
$post = get_post($comment->comment_post_ID);
$authordata = get_userdata($post->post_author);
- $comment_status = wp_get_comment_status($id);
+ $comment_status = wp_get_comment_status($comment->comment_ID);
if ( 'unapproved' == $comment_status )
$class .= ' unapproved';
if ( $alt % 2 )
$class .= ' alternate';
- echo "