X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/38ca813a0e312e2768e5b9519f0415cd0aa84781..refs/tags/wordpress-3.3.1-scripts:/wp-admin/comment.php diff --git a/wp-admin/comment.php b/wp-admin/comment.php index a26ed5c5..b2c69cb7 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -45,8 +45,15 @@ switch( $action ) { case 'editcomment' : $title = __('Edit Comment'); - add_contextual_help( $current_screen, '

' . __( 'You can edit the information left in a comment if needed. This is often useful when you notice that a commenter has made a typographical error.' ) . '

' . - '

' . __( 'You can also moderate the comment from this screen using the Status box, where you can also change the timestamp of the comment.' ) . '

' . + get_current_screen()->add_help_tab( array( + 'id' => 'overview', + 'title' => __('Overview'), + 'content' => + '

' . __( 'You can edit the information left in a comment if needed. This is often useful when you notice that a commenter has made a typographical error.' ) . '

' . + '

' . __( 'You can also moderate the comment from this screen using the Status box, where you can also change the timestamp of the comment.' ) . '

' + ) ); + + get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . '

' . __( 'Documentation on Comments' ) . '

' . '

' . __( 'Support Forums' ) . '

' @@ -66,6 +73,9 @@ case 'editcomment' : if ( 'trash' == $comment->comment_approved ) comment_footer_die( __('This comment is in the Trash. Please move it out of the Trash if you want to edit it.') ); + if ( 'spam' == $comment->comment_approved ) + comment_footer_die( __('This comment is marked as Spam. Please mark it as Not Spam if you want to edit it.') ); + $comment = get_comment_to_edit( $comment_id ); include('./edit-form-comment.php');