X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/6c8f14c09105d0afa4c1574215c59b5021040e76..ac7339a398e6df50f722bc9616291ce5447d8e5e:/wp-admin/edit-form-comment.php diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index 14a29668..c27164ed 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -13,27 +13,25 @@ if ( !defined('ABSPATH') )
comment_ID) ?>
-

-
-
+

- + - + - + @@ -63,7 +63,7 @@ if ( !defined('ABSPATH') )
'strong,em,link,block,del,ins,img,ul,ol,li,code,spell,close' ); + $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' ); wp_editor( $comment->comment_content, 'content', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings ) ); wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
@@ -71,7 +71,7 @@ if ( !defined('ABSPATH') )
-

+

@@ -85,22 +85,54 @@ 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 ); ?> +
+ +
@@ -121,18 +153,27 @@ $date = date_i18n( $datef, strtotime( $comment->comment_date ) );
- + @@ -141,6 +182,8 @@ do_meta_boxes(null, 'normal', $comment);
+ +
comment_author_email ) { @@ -44,12 +42,14 @@ if ( !defined('ABSPATH') ) ?>
comment_author_url ) && 'http://' != $comment->comment_author_url ) { $link = '' . __('visit site') . ''; - printf( __( 'URL (%s):' ), apply_filters('get_comment_author_link', $link ) ); + $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, $author, $comment->comment_ID ) ); } else { _e( 'URL:' ); } ?>