Changeset 15596 for trunk/wp-admin/edit-comments.php
- Timestamp:
- 09/07/2010 11:35:28 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit-comments.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-comments.php
r15578 r15596 35 35 36 36 foreach ( $comment_ids as $comment_id ) { // Check the permissions on each 37 $_post_id = (int) $wpdb->get_var( $wpdb->prepare( "SELECT comment_post_ID FROM $wpdb->comments WHERE comment_ID = %d", $comment_id ) ); 38 39 if ( !current_user_can( 'edit_post', $_post_id ) ) 37 if ( !current_user_can( 'edit_comment', $comment_id ) ) 40 38 continue; 41 39
Note: See TracChangeset
for help on using the changeset viewer.