Changeset 22060
- Timestamp:
- 09/27/2012 03:33:19 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r21948 r22060 50 50 $submenu['edit.php'][5] = array( __('All Posts'), 'edit_posts', 'edit.php' ); 51 51 /* translators: add new post */ 52 $submenu['edit.php'][10] = array( _x('Add New', 'post'), ' edit_posts', 'post-new.php' );52 $submenu['edit.php'][10] = array( _x('Add New', 'post'), 'create_posts', 'post-new.php' ); 53 53 54 54 $i = 15; -
trunk/wp-includes/capabilities.php
r22056 r22060 1047 1047 } 1048 1048 break; 1049 // current_user_can( 'create_posts', $post_type ) 1050 case 'create_posts': 1051 $post_type = isset( $args[0] ) ? $args[0] : 'post'; 1052 $post_type_object = get_post_type_object( $post_type ); 1053 1054 $caps[] = $post_type_object->cap->create_posts; 1055 1056 break; 1049 1057 // edit_post breaks down to edit_posts, edit_published_posts, or 1050 1058 // edit_others_posts -
trunk/wp-includes/post.php
r21981 r22060 1297 1297 'publish_posts' => 'publish_' . $plural_base, 1298 1298 'read_private_posts' => 'read_private_' . $plural_base, 1299 // Post creation capability simply maps to edit_posts by default: 1300 'create_posts' => 'edit_' . $plural_base, 1299 1301 ); 1300 1302
Note: See TracChangeset
for help on using the changeset viewer.