Changeset 18584 for trunk/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 08/23/2011 10:22:34 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-xmlrpc-server.php
r18501 r18584 1135 1135 return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) ); 1136 1136 1137 if ( ! get_comment($comment_ID) ) 1138 return new IXR_Error( 404, __( 'Invalid comment ID.' ) ); 1139 1137 1140 if ( !current_user_can( 'edit_comment', $comment_ID ) ) 1138 1141 return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) ); 1139 1142 1140 1143 do_action('xmlrpc_call', 'wp.deleteComment'); 1141 1142 if ( ! get_comment($comment_ID) )1143 return new IXR_Error( 404, __( 'Invalid comment ID.' ) );1144 1144 1145 1145 return wp_delete_comment($comment_ID); … … 1185 1185 return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) ); 1186 1186 1187 if ( ! get_comment($comment_ID) ) 1188 return new IXR_Error( 404, __( 'Invalid comment ID.' ) ); 1189 1187 1190 if ( !current_user_can( 'edit_comment', $comment_ID ) ) 1188 1191 return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) ); 1189 1192 1190 1193 do_action('xmlrpc_call', 'wp.editComment'); 1191 1192 if ( ! get_comment($comment_ID) )1193 return new IXR_Error( 404, __( 'Invalid comment ID.' ) );1194 1194 1195 1195 if ( isset($content_struct['status']) ) {
Note: See TracChangeset
for help on using the changeset viewer.