WordPress.org

Make WordPress Core

Ticket #12664: publish_others_cap.diff

File publish_others_cap.diff, 1.5 KB (added by sillybean, 5 years ago)

fix duplicate edit_others_cap in register_post_type() argument docs

  • Users/steph/Documents/code/WordPressSVN/trunk/wp-includes/post.php

     
    767767 * edit_cap - The capability that controls editing a particular object of this post type. Defaults to "edit_$capability_type" (edit_post). 
    768768 * edit_type_cap - The capability that controls editing objects of this post type as a class. Defaults to "edit_ . $capability_type . s" (edit_posts). 
    769769 * edit_others_cap - The capability that controls editing objects of this post type that are owned by other users. Defaults to "edit_others_ . $capability_type . s" (edit_others_posts). 
    770  * edit_others_cap - The capability that controls publishing objects of this post type. Defaults to "publish_ . $capability_type . s" (publish_posts). 
     770 * publish_others_cap - The capability that controls publishing objects of this post type. Defaults to "publish_ . $capability_type . s" (publish_posts). 
    771771 * read_cap - The capability that controls reading a particular object of this post type. Defaults to "read_$capability_type" (read_post). 
    772772 * delete_cap - The capability that controls deleting a particular object of this post type. Defaults to "delete_$capability_type" (delete_post). 
    773773 * hierarchical - Whether the post type is hierarchical. Defaults to false.