Ticket #13573: 13573.diff
| File 13573.diff, 2.9 KB (added by michaelh, 3 years ago) |
|---|
-
wp-includes/post.php
890 890 * Builds an object with all post type capabilities out of a post type object 891 891 * 892 892 * 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). 894 894 * - edit_posts - The capability that controls editing objects of this post type as a class. Defaults to "edit_ . $capability_type . s" (edit_posts). 895 895 * - 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). 896 896 * - 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). 900 900 * 901 901 * @since 3.0.0 902 902 * @param object $args … … 925 925 * - 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> 926 926 * - add_new_item - Default is Add New Post/Add New Page 927 927 * - 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>929 928 * - new_item - Default is New Post/New Page 930 929 * - view_item - Default is View Post/View Page 931 930 * - search_items - Default is Search Posts/Search Pages