Ticket #10677: admin-ajax.patch
| File admin-ajax.patch, 586 bytes (added by scribu, 4 years ago) |
|---|
-
wp-admin/admin-ajax.php
348 348 $x->send(); 349 349 } 350 350 351 if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) )351 if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) && !current_user_can( 'moderate_comments' ) ) 352 352 die('-1'); 353 if ( !current_user_can( 'moderate_comments' ) )354 die('-1');355 353 356 354 $current = wp_get_comment_status( $comment->comment_ID ); 357 355 if ( $_POST['new'] == $current )