Ticket #39019: 39019.patch
| File 39019.patch, 1.1 KB (added by , 10 years ago) |
|---|
-
wp-includes/class-wp-xmlrpc-server.php
3133 3133 /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ 3134 3134 do_action( 'xmlrpc_call', 'wp.deleteCategory' ); 3135 3135 3136 if ( !current_user_can( 'manage_categories') )3137 return new IXR_Error( 401, __( 'Sorry, you are not allowed to delete acategory.' ) );3136 if ( !current_user_can( 'manage_categories', $category_id ) ) 3137 return new IXR_Error( 401, __( 'Sorry, you are not allowed to delete this category.' ) ); 3138 3138 3139 3139 $status = wp_delete_term( $category_id, 'category' ); 3140 3140 … … 3364 3364 } 3365 3365 3366 3366 if ( !current_user_can( 'edit_comment', $comment_ID ) ) { 3367 return new IXR_Error( 403, __( 'Sorry, you are not allowed to moderate or editthis comment.' ) );3367 return new IXR_Error( 403, __( 'Sorry, you are not allowed to delete this comment.' ) ); 3368 3368 } 3369 3369 3370 3370 /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)