Changeset 40128 for trunk/src/wp-includes/comment.php
- Timestamp:
- 02/27/2017 12:22:02 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r39663 r40128 3006 3006 */ 3007 3007 do_action( 'comment_on_draft', $comment_post_ID ); 3008 3009 return new WP_Error( 'comment_on_draft' ); 3008 3009 if ( current_user_can( 'read_post', $comment_post_ID ) ) { 3010 return new WP_Error( 'comment_on_draft', __( 'Sorry, comments are not allowed for this item.' ), 403 ); 3011 } else { 3012 return new WP_Error( 'comment_on_draft' ); 3013 } 3010 3014 3011 3015 } elseif ( post_password_required( $comment_post_ID ) ) {
Note: See TracChangeset
for help on using the changeset viewer.