X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/177fd6fefd2e3d5a0ea6591c71d660cabdb3c1a4..refs/tags/wordpress-4.3:/wp-admin/edit-form-comment.php diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index dfef0a78..9b8062da 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -1,108 +1,199 @@ comment_ID); -$form_action = 'editedcomment'; -$form_extra = "' />\n\n -
comment_ID) ?>
-

- - +

+ + + -
+
+
+
+
+
+ + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+
-
- +
+' . __( '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 ); ?>
+
+
+
+

+
+
-

-

- -

+
+
+ +
+
+
+ +
+
+ +
+
+ +
+ +
comment_date); -$time = mysql2date(get_option('time_format'), $comment->comment_date); +/* translators: Publish box date format, see http://php.net/date */ +$datef = __( 'M j, Y @ H:i' ); +$stamp = __('Submitted on: %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 ) ); +} +?> +
+ ' . $post_link . '' + ); ?>
-

- comment_ID&_wp_original_http_referer=" . wp_get_referer(), 'delete-comment_' . $comment->comment_ID) . "' onclick=\"if ( confirm('" . js_escape(__("You are about to delete this comment. \n 'Cancel' to stop, 'OK' to delete.")) . "') ) { return true;}return false;\">" . __('Delete comment') . ""; +if ( $comment->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 ); ?> -

+
+ ' . $name . '' + ); ?> +
+ -
-
+ -
    -
  • -
  • - -
-
- +
+
-
-
-

-
- +
+
+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_content, 'content', 'newcomment_author_url', false, 4); ?> - -
+
+ +do_meta_boxes(null, 'normal', $comment); - - - +$referer = wp_get_referer(); +?> +
+ + + + + +
-
- + +