Ticket #12104: 12104.patch
File 12104.patch, 527 bytes (added by , 13 years ago) |
---|
-
wp-includes/capabilities.php
1100 1100 } 1101 1101 break; 1102 1102 case 'edit_comment': 1103 if ( user_can( $user_id, 'moderate_comments' ) ) { 1104 $caps[] = 'moderate_comments'; 1105 break; 1106 } 1103 1107 $comment = get_comment( $args[0] ); 1104 1108 $post = get_post( $comment->comment_post_ID ); 1105 1109 $post_type_object = get_post_type_object( $post->post_type );