We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 757dbbd commit 8fba138Copy full SHA for 8fba138
src/wp-includes/comment.php
@@ -764,7 +764,7 @@ function wp_allow_comment( $commentdata, $wp_error = false ) {
764
// Notes require logged in users that can edit the current post, ignore flooding check.
765
if ( isset( $commentdata['comment_type'] ) && 'note' === $commentdata['comment_type'] ) {
766
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 );
+ return new WP_Error( 'comment_note_permission', __( 'You do not have permission to edit notes for this post.' ), 403 );
768
}
769
} else {
770
/**
0 commit comments