diff -r 490d5cc509ed -r cf61fcea0001 wp/wp-admin/edit-form-comment.php --- a/wp/wp-admin/edit-form-comment.php Tue Jun 09 11:14:17 2015 +0000 +++ b/wp/wp-admin/edit-form-comment.php Mon Oct 14 17:39:30 2019 +0200 @@ -13,7 +13,7 @@
comment_ID) ?>
-

+

@@ -21,48 +21,54 @@
-
+
+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') . ''; - $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:' ); - } ?> + +

+
' . __( '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,41 +77,37 @@
-

+

-
-
- -
-
-
-
-
-
-
- -
- - -
- -
- +
+ +
+
+ +
%1$s'); -$date = date_i18n( $datef, strtotime( $comment->comment_date ) ); ?> -  -
+' . date_i18n( $datef, strtotime( $comment->comment_date ) ) . '' +); +?> + +
+ + +
- %s' ), $post_link ); ?> + ' . $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 ); + if ( $parent ) : + $parent_link = esc_url( get_comment_link( $parent ) ); + $name = get_comment_author( $parent ); + ?> +
+ ' . $name . '' + ); ?> +
+ + + -
- %2$s' ), $parent_link, $name ); ?> -
-
@@ -142,7 +166,7 @@ comment_ID&_wp_original_http_referer=" . urlencode(wp_get_referer()), 'delete-comment_' . $comment->comment_ID) . "'>" . ( !EMPTY_TRASH_DAYS ? __('Delete Permanently') : __('Move to Trash') ) . "\n"; ?>
- +
@@ -161,7 +185,7 @@ * * @since 3.0.0 * - * @param object $comment Comment object. + * @param WP_Comment $comment Comment object. */ do_action( 'add_meta_boxes_comment', $comment );