Ticket #27471: 27471.diff
File 27471.diff, 538 bytes (added by , 11 years ago) |
---|
-
wp-includes/class-wp-xmlrpc-server.php
2980 2980 if ( ! get_post($post_id) ) 2981 2981 return new IXR_Error( 404, __( 'Invalid post ID.' ) ); 2982 2982 2983 if ( ! comments_open( $post_id ) ) 2984 return new IXR_Error( 403, __( 'Sorry, comments are closed for this item.' ) ); 2985 2983 2986 $comment['comment_post_ID'] = $post_id; 2984 2987 2985 2988 if ( $logged_in ) {