WordPress.org

Make WordPress Core

Ticket #13494: 13494.diff

File 13494.diff, 710 bytes (added by rovo89, 5 years ago)
  • wp-includes/post.php

     
    908908                'edit_posts'         => 'edit_'         . $args->capability_type . 's', 
    909909                'edit_others_posts'  => 'edit_others_'  . $args->capability_type . 's', 
    910910                'publish_posts'      => 'publish_'      . $args->capability_type . 's', 
    911                 'read_post'          => 'edit_'         . $args->capability_type, 
     911                'read_post'          => 'read_'         . $args->capability_type, 
    912912                'read_private_posts' => 'read_private_' . $args->capability_type . 's', 
    913913                'delete_post'        => 'delete_'       . $args->capability_type, 
    914914        );