Changeset 49393 for branches/5.3/src/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 10/29/2020 06:41:43 PM (4 years ago)
- Location:
- branches/5.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3
- Property svn:mergeinfo changed
/branches/5.5 (added) merged: 49373-49379,49381 /trunk merged: 49380,49382-49388
- Property svn:mergeinfo changed
-
branches/5.3/src/wp-includes/class-wp-xmlrpc-server.php
r46865 r49393 3874 3874 } 3875 3875 3876 if ( 3877 'publish' === get_post_status( $post_id ) && 3878 ! current_user_can( 'edit_post', $post_id ) && 3879 post_password_required( $post_id ) 3880 ) { 3881 return new IXR_Error( 403, __( 'Sorry, you are not allowed to comment on this post.' ) ); 3882 } 3883 3884 if ( 3885 'private' === get_post_status( $post_id ) && 3886 ! current_user_can( 'read_post', $post_id ) 3887 ) { 3888 return new IXR_Error( 403, __( 'Sorry, you are not allowed to comment on this post.' ) ); 3889 } 3890 3876 3891 $comment = array( 3877 3892 'comment_post_ID' => $post_id, … … 4287 4302 4288 4303 $attachment = get_post( $attachment_id ); 4289 if ( ! $attachment ) {4304 if ( ! $attachment || 'attachment' !== $attachment->post_type ) { 4290 4305 return new IXR_Error( 404, __( 'Invalid attachment ID.' ) ); 4291 4306 }
Note: See TracChangeset
for help on using the changeset viewer.