Make WordPress Core

Changeset 10381


Ignore:
Timestamp:
01/19/2009 06:47:36 PM (15 years ago)
Author:
ryan
Message:

XMLRPC wp_newComment() fixes. Props josephscott. fixes #8672 for 2.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/xmlrpc.php

    r10206 r10381  
    12591259            $logged_in = true;
    12601260            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.' ) );
    12631261        }
    12641262
     
    12861284            if ( isset($content_struct['author']) )
    12871285                $comment['comment_author'] = $content_struct['author'];
     1286
    12881287            $comment['comment_author_email'] = '';
    1289             if ( isset($content_struct['author']) )
     1288            if ( isset($content_struct['author_email']) )
    12901289                $comment['comment_author_email'] = $content_struct['author_email'];
     1290
    12911291            $comment['comment_author_url'] = '';
    1292             if ( isset($content_struct['author']) )
     1292            if ( isset($content_struct['author_url']) )
    12931293                $comment['comment_author_url'] = $content_struct['author_url'];
     1294
    12941295            $comment['user_ID'] = 0;
    12951296
Note: See TracChangeset for help on using the changeset viewer.