X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/fd1685fbc29cf422e0d23f1bf1815bc023be805d..fcaa67f093b5c83deea7a361a8cf8c6ac4e832d3:/wp-admin/edit-form-comment.php diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index f361ad7a..c27164ed 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -9,30 +9,69 @@ // don't load directly if ( !defined('ABSPATH') ) die('-1'); - -/** - * @var string - */ -$submitbutton_text = __('Edit Comment'); -$toprow_title = sprintf(__('Editing Comment # %s'), $comment->comment_ID); -$form_action = 'editedcomment'; -$form_extra = "' />\n\ncomment_ID) ?>
-

-
- - +
+ + + + +
+
+
+

+
+ + + + + + + + + + + + + + + +
+ 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:' ); + } ?>
+
+
+
+ +
+ '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 ); ?> +
+
-
+
-

+

@@ -46,98 +85,105 @@ $comment->comment_author_email = esc_attr($comment->comment_author_email);
-
-
-
- +
+
+
+
-
+ +
+ +
+ + +
%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 ); ?>
+ +
-comment_ID&_wp_original_http_referer=" . urlencode(wp_get_referer()), 'delete-comment_' . $comment->comment_ID) . "' onclick=\"if ( confirm('" . esc_js(__("You are about to delete this comment. \n 'Cancel' to stop, 'OK' to delete.")) . "') ){return true;}return false;\">" . __('Delete') . "\n"; ?> +comment_ID&_wp_original_http_referer=" . urlencode(wp_get_referer()), 'delete-comment_' . $comment->comment_ID) . "'>" . ( !EMPTY_TRASH_DAYS ? __('Delete Permanently') : __('Move to Trash') ) . "\n"; ?>
- +
-
+
-
-
-
-

-
- - - - - - - - - - - - - - - -
- 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') . ''; - printf( __( 'URL (%s):' ), apply_filters('get_comment_author_link', $link ) ); - } else { - _e( 'URL:' ); - } ?>
-
-
-
+
+ -comment_content, 'content', 'newcomment_author_url', false, 4); ?> - -
+/** + * Fires when comment-specific meta boxes are added. + * + * @since 3.0.0 + * + * @param object $comment Comment object. + */ +do_action( 'add_meta_boxes_comment', $comment ); - +do_meta_boxes(null, 'normal', $comment); + +$referer = wp_get_referer(); +?> +
- + -
-
+
+ +