diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index d63420e106..dda2615134 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -119,17 +119,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( $comment->comment_parent ) ); + $name = get_comment_author( $parent->comment_ID ); + ?> +
+ ' . $name . '' + ); ?> +
+ comment_parent ) { $parent = get_comment( $comment->comment_parent ); - $parent_link = esc_url( get_comment_link( $parent ) ); - $name = get_comment_author( $parent ); - printf( ' | '.__( 'In reply to %2$s.' ), $parent_link, $name ); + if ( $parent ) { + $parent_link = esc_url( get_comment_link( $parent ) ); + $name = get_comment_author( $parent ); + printf( ' | '.__( 'In reply to %2$s.' ), $parent_link, $name ); + } } echo ''; diff --git a/wp-includes/version.php b/wp-includes/version.php index e0fda922da..b8c9e29b91 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34014'; +$wp_version = '4.4-alpha-34015'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.