Changeset 49389
- Timestamp:
- 10/29/2020 06:26:20 PM (4 years ago)
- Location:
- branches/5.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
-
branches/5.5/src/wp-includes/class-wp-xmlrpc-server.php
r49376 r49389 3876 3876 } 3877 3877 3878 if ( 3879 'publish' === get_post_status( $post_id ) && 3880 ! current_user_can( 'edit_post', $post_id ) && 3881 post_password_required( $post_id ) 3882 ) { 3883 return new IXR_Error( 403, __( 'Sorry, you are not allowed to comment on this post.' ) ); 3884 } 3885 3886 if ( 3887 'private' === get_post_status( $post_id ) && 3888 ! current_user_can( 'read_post', $post_id ) 3889 ) { 3890 return new IXR_Error( 403, __( 'Sorry, you are not allowed to comment on this post.' ) ); 3891 } 3892 3878 3893 if ( empty( $content_struct['content'] ) ) { 3879 3894 return new IXR_Error( 403, __( 'Comment is required.' ) );
Note: See TracChangeset
for help on using the changeset viewer.