From b1bbce3f6e269c0f82cc025971e2aa3f768c0dce Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Tue, 10 Mar 2015 14:50:50 +0000 Subject: [PATCH] Comments: Fix undefined `$comment_url` variable notice, introduced in [31641]. see #23988. git-svn-id: https://develop.svn.wordpress.org/trunk@31695 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/comment.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/comment.php b/src/wp-admin/comment.php index f5eb56103d..37fc4fc98d 100644 --- a/src/wp-admin/comment.php +++ b/src/wp-admin/comment.php @@ -149,8 +149,9 @@ if ( $comment->comment_approved != '0' ) { // if not unapproved $message = __('This comment is currently in the Trash.'); break; } - if ( $message ) - echo '

' . $message . '

'; + if ( $message ) { + echo '

' . $message . '

'; + } } ?>

@@ -186,7 +187,6 @@ if ( $comment->comment_approved != '0' ) { // if not unapproved echo $post_link; if ( $comment->comment_parent ) { - $comment_url = esc_url( get_comment_link( $comment->comment_ID ) ); $parent = get_comment( $comment->comment_parent ); $parent_link = esc_url( get_comment_link( $comment->comment_parent ) ); $name = get_comment_author( $parent->comment_ID ); @@ -200,7 +200,8 @@ if ( $comment->comment_approved != '0' ) { // if not unapproved %2$s at %3$s' ), $comment_url, + printf( __( '%2$s at %3$s' ), + esc_url( get_comment_link( $comment->comment_ID ) ), /* translators: comment date format. See http://php.net/date */ get_comment_date( __( 'Y/m/d' ) ), get_comment_date( get_option( 'time_format' ) )