WordPress.org

Make WordPress Core

Ticket #13573: 13573.diff

File 13573.diff, 2.9 KB (added by michaelh, 5 years ago)

minor doc changes

  • wp-includes/post.php

     
    890890 * Builds an object with all post type capabilities out of a post type object 
    891891 * 
    892892 * Accepted keys of the capabilities array in the post type object: 
    893  * - edit_post - The meta capability that controls editing a particular object of this post type. Defaults to "edit_$capability_type" (edit_post). 
     893 * - edit_post - The meta capability that controls editing a particular object of this post type. Defaults to "edit_ . $capability_type" (edit_post). 
    894894 * - edit_posts - The capability that controls editing objects of this post type as a class. Defaults to "edit_ . $capability_type . s" (edit_posts). 
    895895 * - edit_others_posts - 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). 
    896896 * - publish_posts - The capability that controls publishing objects of this post type. Defaults to "publish_ . $capability_type . s" (publish_posts). 
    897  * - read_post - The meta capability that controls reading a particular object of this post type. Defaults to "read_$capability_type" (read_post). 
    898  * - read_private_posts - The capability that controls reading private posts. Defaults to "read_ . $capability_type . s" (read_private_posts). 
    899  * - delete_post - The meta capability that controls deleting a particular object of this post type. Defaults to "delete_$capability_type" (delete_post). 
     897 * - read_post - The meta capability that controls reading a particular object of this post type. Defaults to "read_ . $capability_type" (read_post). 
     898 * - read_private_posts - The capability that controls reading private posts. Defaults to "read_private . $capability_type . s" (read_private_posts). 
     899 * - delete_post - The meta capability that controls deleting a particular object of this post type. Defaults to "delete_ . $capability_type" (delete_post). 
    900900 * 
    901901 * @since 3.0.0 
    902902 * @param object $args 
     
    925925 * - add_new - Default is Add New for both hierarchical and non-hierarchical types. When internationalizing this string, please use a {@link http://codex.wordpress.org/I18n_for_WordPress_Developers#Disambiguation_by_context gettext context} matching your post type. Example: <code>_x('Add New', 'product');</code> 
    926926 * - add_new_item - Default is Add New Post/Add New Page 
    927927 * - edit_item - Default is Edit Post/Edit Page 
    928  * - edit - Default is Edit. When internationalizing this string, please use a {@link http://codex.wordpress.org/I18n_for_WordPress_Developers#Disambiguation_by_context gettext context} matching your post type. Example: <code>_x('Edit', 'product');</code> 
    929928 * - new_item - Default is New Post/New Page 
    930929 * - view_item - Default is View Post/View Page 
    931930 * - search_items - Default is Search Posts/Search Pages