Skip to content

Commit 8fba138

Browse files
Update comment.php
Co-authored-by: Jonathan Desrosiers <[email protected]>
1 parent 757dbbd commit 8fba138

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ function wp_allow_comment( $commentdata, $wp_error = false ) {
764764
// Notes require logged in users that can edit the current post, ignore flooding check.
765765
if ( isset( $commentdata['comment_type'] ) && 'note' === $commentdata['comment_type'] ) {
766766
if ( ! isset( $commentdata['comment_post_ID'] ) || ! current_user_can( 'edit_post', $commentdata['comment_post_ID'] ) ) {
767-
return new WP_Error( 'comment_note_permission', __( 'You do not have permission edit notes on this post.' ), 403 );
767+
return new WP_Error( 'comment_note_permission', __( 'You do not have permission to edit notes for this post.' ), 403 );
768768
}
769769
} else {
770770
/**

0 commit comments

Comments
 (0)