WordPress.org

Make WordPress Core

Changeset 16801


Ignore:
Timestamp:
12/08/2010 04:52:08 PM (7 years ago)
Author:
westi
Message:

Check for extra caps here too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r16800 r16801  
    11001100            return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) );
    11011101
     1102        if ( !current_user_can( 'edit_comment', $comment_ID ) )
     1103            return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) );
     1104           
    11021105        do_action('xmlrpc_call', 'wp.deleteComment');
    11031106
     
    11311134            return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) );
    11321135
     1136        if ( !current_user_can( 'edit_comment', $comment_ID ) )
     1137            return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) );
     1138           
    11331139        do_action('xmlrpc_call', 'wp.editComment');
    11341140
Note: See TracChangeset for help on using the changeset viewer.