Changeset 38829 for trunk/src/wp-includes/post.php
- Timestamp:
- 10/19/2016 06:14:21 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r38810 r38829 110 110 'delete_with_user' => false, 111 111 'query_var' => false, 112 ) ); 113 114 register_post_type( 'custom_css', array( 115 'labels' => array( 116 'name' => __( 'Custom CSS' ), 117 'singular_name' => __( 'Custom CSS' ), 118 ), 119 'public' => false, 120 'hierarchical' => false, 121 'rewrite' => false, 122 'query_var' => false, 123 'delete_with_user' => false, 124 'can_export' => true, 125 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 126 'supports' => array( 'title' ), 127 'capabilities' => array( 128 'delete_posts' => 'edit_theme_options', 129 'delete_post' => 'edit_theme_options', 130 'delete_published_posts' => 'edit_theme_options', 131 'delete_private_posts' => 'edit_theme_options', 132 'delete_others_posts' => 'edit_theme_options', 133 'edit_post' => 'unfiltered_css', 134 'edit_posts' => 'unfiltered_css', 135 'edit_others_posts' => 'unfiltered_css', 136 'edit_published_posts' => 'unfiltered_css', 137 'read_post' => 'read', 138 'read_private_posts' => 'read', 139 'publish_posts' => 'edit_theme_options', 140 ), 112 141 ) ); 113 142
Note: See TracChangeset
for help on using the changeset viewer.