X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/9e77185fafaf4e60e2b73821e0e4b9b1a11fb85f..607b7e02d77e7326161e8ec15639052d2040f745:/wp-admin/edit-form-comment.php diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index b2950f77..9fac3e93 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -13,56 +13,58 @@ if ( !defined('ABSPATH') )
comment_ID) ?>
-

+

-
-
+
+comment_post_ID > 0 ) : + $comment_link = get_comment_link( $comment ); +?> +
+ +
+
-

+
+ - + - - + + - - + +
- comment_author_email ) { - printf( __( 'E-mail (%s):' ), get_comment_author_email_link( __( 'send e-mail' ), '', '' ) ); - } else { - _e( 'E-mail:' ); - } -?> + +
- comment_author_url ) && 'http://' != $comment->comment_author_url ) { - $link = '' . __('visit site') . ''; - /** This filter is documented in wp-includes/comment-template.php */ - printf( __( 'URL (%s):' ), apply_filters( 'get_comment_author_link', $link ) ); - } else { - _e( 'URL:' ); - } ?> + +

+
' . __( 'Comment' ) . ''; $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,42 +73,86 @@ if ( !defined('ABSPATH') )
-

+

-
-
- -
-
-
-
-
-
-
- -
+
+ +
+
+ +
- -
- +
+ +' . date_i18n( $datef, strtotime( $comment->comment_date ) ) . '' +); +?> + +
+ + +
- -
%1$s'); -$date = date_i18n( $datef, strtotime( $comment->comment_date ) ); +$post_id = $comment->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 ) ); +} ?> -  -
+ +
+ ' . $post_link . '' + ); ?>
+ +comment_parent ) : + $parent = get_comment( $comment->comment_parent ); + if ( $parent ) : + $parent_link = esc_url( get_comment_link( $parent ) ); + $name = get_comment_author( $parent ); + ?> +
+ ' . $name . '' + ); ?> +
+ + + +
@@ -135,18 +181,19 @@ do_action( 'add_meta_boxes', 'comment', $comment ); * * @since 3.0.0 * - * @param object $comment Comment object. + * @param WP_Comment $comment Comment object. */ do_action( 'add_meta_boxes_comment', $comment ); do_meta_boxes(null, 'normal', $comment); +$referer = wp_get_referer(); ?>
- + @@ -155,6 +202,8 @@ do_meta_boxes(null, 'normal', $comment);
+ +