WordPress.org

Make WordPress Core

Ticket #12104: 12104.patch

File 12104.patch, 527 bytes (added by linuxologos, 3 years ago)
  • wp-includes/capabilities.php

     
    11001100                } 
    11011101                break; 
    11021102        case 'edit_comment': 
     1103                if ( user_can( $user_id, 'moderate_comments' ) ) { 
     1104                        $caps[] = 'moderate_comments'; 
     1105                        break; 
     1106                } 
    11031107                $comment = get_comment( $args[0] ); 
    11041108                $post = get_post( $comment->comment_post_ID ); 
    11051109                $post_type_object = get_post_type_object( $post->post_type );