~canonical-sysadmins/wordpress/4.8.2

« back to all changes in this revision

Viewing changes to wp-admin/edit-comments.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:
11
11
if ( ! current_user_can( 'edit_posts' ) ) {
12
12
        wp_die(
13
13
                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
14
 
                '<p>' . __( 'You are not allowed to edit comments.' ) . '</p>',
 
14
                '<p>' . __( 'Sorry, you are not allowed to edit comments.' ) . '</p>',
15
15
                403
16
16
        );
17
17
}
210
210
                        $error_msg = __( 'Invalid comment ID.' );
211
211
                        break;
212
212
                case 2 :
213
 
                        $error_msg = __( 'You are not allowed to edit comments on this post.' );
 
213
                        $error_msg = __( 'Sorry, you are not allowed to edit comments on this post.' );
214
214
                        break;
215
215
        }
216
216
        if ( $error_msg )