X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/9e77185fafaf4e60e2b73821e0e4b9b1a11fb85f..fcaa67f093b5c83deea7a361a8cf8c6ac4e832d3:/wp-admin/edit-form-comment.php?ds=sidebyside diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index b2950f77..c27164ed 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -16,7 +16,6 @@ if ( !defined('ABSPATH') )

- @@ -48,8 +47,9 @@ if ( !defined('ABSPATH') ) comment_author_url ) && 'http://' != $comment->comment_author_url ) { $link = '' . __('visit site') . ''; + $author = get_comment_author( $comment->comment_ID ); /** This filter is documented in wp-includes/comment-template.php */ - printf( __( 'URL (%s):' ), apply_filters( 'get_comment_author_link', $link ) ); + printf( __( 'URL (%s):' ), apply_filters( 'get_comment_author_link', $link, $author, $comment->comment_ID ) ); } else { _e( 'URL:' ); } ?> @@ -100,13 +100,39 @@ if ( !defined('ABSPATH') )
%1$s'); $date = date_i18n( $datef, strtotime( $comment->comment_date ) ); ?>  
+ +comment_post_ID; +if ( current_user_can( 'edit_post', $post_id ) ) { + $post_link = ""; + $post_link .= esc_html( get_the_title( $post_id ) ) . ''; +} else { + $post_link = esc_html( get_the_title( $post_id ) ); +} +?> + +
+ %s' ), $post_link ); ?> +
+ +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 ); +?> +
+ %2$s' ), $parent_link, $name ); ?> +
+ +
@@ -141,12 +167,13 @@ do_action( 'add_meta_boxes_comment', $comment ); do_meta_boxes(null, 'normal', $comment); +$referer = wp_get_referer(); ?> - + @@ -155,6 +182,8 @@ do_meta_boxes(null, 'normal', $comment); + +