~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-admin/includes/comment.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
 */
47
47
function edit_comment() {
48
48
        if ( ! current_user_can( 'edit_comment', (int) $_POST['comment_ID'] ) )
49
 
                wp_die ( __( 'You are not allowed to edit comments on this post.' ) );
 
49
                wp_die ( __( 'Sorry, you are not allowed to edit comments on this post.' ) );
50
50
 
51
51
        if ( isset( $_POST['newcomment_author'] ) )
52
52
                $_POST['comment_author'] = $_POST['newcomment_author'];
102
102
 
103
103
        $comment->comment_content = format_to_edit( $comment->comment_content );
104
104
        /**
105
 
         * Filter the comment content before editing.
 
105
         * Filters the comment content before editing.
106
106
         *
107
107
         * @since 2.0.0
108
108
         *