Make WordPress Core

Ticket #19916: wp.editComment.patch

File wp.editComment.patch, 1.2 KB (added by nprasath002, 13 years ago)
  • class-wp-xmlrpc-server.php

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: C:\xampp\htdocs\wordtrunk\wp-includes
    # This patch can be applied using context Tools: Patch action on respective folder.
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    11401140                if ( !$user = $this->login($username, $password) )
    11411141                        return $this->error;
    11421142
    1143                 if ( !current_user_can( 'moderate_comments' ) )
    1144                         return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) );
    1145 
    11461143                if ( ! get_comment($comment_ID) )
    11471144                        return new IXR_Error( 404, __( 'Invalid comment ID.' ) );
    11481145
     
    11901187                if ( !$user = $this->login($username, $password) )
    11911188                        return $this->error;
    11921189
    1193                 if ( !current_user_can( 'moderate_comments' ) )
    1194                         return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) );
    1195 
    11961190                if ( ! get_comment($comment_ID) )
    11971191                        return new IXR_Error( 404, __( 'Invalid comment ID.' ) );
    11981192