Ticket #8672: xmlrpc.php.diff
| File xmlrpc.php.diff, 1.1 KB (added by josephscott, 3 years ago) |
|---|
-
xmlrpc.php
1258 1258 } else { 1259 1259 $logged_in = true; 1260 1260 set_current_user( 0, $username ); 1261 if ( !current_user_can( 'moderate_comments' ) )1262 return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this blog.' ) );1263 1261 } 1264 1262 1265 1263 if ( is_numeric($post) ) … … 1285 1283 $comment['comment_author'] = ''; 1286 1284 if ( isset($content_struct['author']) ) 1287 1285 $comment['comment_author'] = $content_struct['author']; 1286 1288 1287 $comment['comment_author_email'] = ''; 1289 if ( isset($content_struct['author ']) )1288 if ( isset($content_struct['author_email']) ) 1290 1289 $comment['comment_author_email'] = $content_struct['author_email']; 1290 1291 1291 $comment['comment_author_url'] = ''; 1292 if ( isset($content_struct['author ']) )1292 if ( isset($content_struct['author_url']) ) 1293 1293 $comment['comment_author_url'] = $content_struct['author_url']; 1294 1294 1295 $comment['user_ID'] = 0; 1295 1296 1296 1297 if ( get_option('require_name_email') ) {
