X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/e0feb3b2e5b436a06bbb04fbc838d1cd6ec95399..3194d1bb103c2d8db4f44feeced5e58ee2756658:/wp-admin/edit-form-comment.php diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index 9b8062da..92911db2 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,18 +73,11 @@ if ( !defined('ABSPATH') )
-

+

-
-
- -
-
-
-
@@ -87,10 +91,14 @@ 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,17 +127,19 @@ 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 . '' + ); ?> +
+