X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/53f4633144ed68c8b8fb5861f992b5489894a940..refs/heads/pristine:/wp-admin/edit-form-comment.php diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index 9b8062da..2ae7957f 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -22,6 +22,17 @@ if ( !defined('ABSPATH') )
+comment_post_ID > 0 ) : + $comment_link = get_comment_link( $comment ); +?> +
+ +
+
@@ -33,7 +44,7 @@ if ( !defined('ABSPATH') ) - + @@ -62,35 +73,32 @@ if ( !defined('ABSPATH') )
-

+

-
-
- -
-
-
-
-
-
- +
+
+
%1$s'); -$date = date_i18n( $datef, strtotime( $comment->comment_date ) ); ?> - +' . date_i18n( $datef, strtotime( $comment->comment_date ) ) . '' +); +?>
@@ -110,7 +118,7 @@ if ( current_user_can( 'edit_post', $post_id ) ) {
' . $post_link . '' ); ?> @@ -119,21 +127,23 @@ if ( current_user_can( 'edit_post', $post_id ) ) { comment_parent ) : $parent = get_comment( $comment->comment_parent ); - $parent_link = esc_url( get_comment_link( $comment->comment_parent ) ); - $name = get_comment_author( $parent->comment_ID ); -?> -
- ' . $name . '' - ); ?> -
- + if ( $parent ) : + $parent_link = esc_url( get_comment_link( $parent ) ); + $name = get_comment_author( $parent ); + ?> +
+ ' . $name . '' + ); ?> +
+ comment_parent ) : comment_ID&_wp_original_http_referer=" . urlencode(wp_get_referer()), 'delete-comment_' . $comment->comment_ID) . "'>" . ( !EMPTY_TRASH_DAYS ? __('Delete Permanently') : __('Move to Trash') ) . "\n"; ?>
- +
@@ -171,7 +181,7 @@ do_action( 'add_meta_boxes', 'comment', $comment ); * * @since 3.0.0 * - * @param object $comment Comment object. + * @param WP_Comment $comment Comment object. */ do_action( 'add_meta_boxes_comment', $comment );