Changeset 22908 for trunk/wp-admin/menu.php
- Timestamp:
- 11/28/2012 10:28:20 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r22900 r22908 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'), 'create_posts', 'post-new.php' );52 $submenu['edit.php'][10] = array( _x('Add New', 'post'), get_post_type_object( 'post' )->cap->create_posts, 'post-new.php' ); 53 53 54 54 $i = 15; … … 82 82 $submenu['edit.php?post_type=page'][5] = array( __('All Pages'), 'edit_pages', 'edit.php?post_type=page' ); 83 83 /* translators: add new page */ 84 $submenu['edit.php?post_type=page'][10] = array( _x('Add New', 'page'), 'edit_pages', 'post-new.php?post_type=page' );84 $submenu['edit.php?post_type=page'][10] = array( _x('Add New', 'page'), get_post_type_object( 'page' )->cap->create_posts, 'post-new.php?post_type=page' ); 85 85 $i = 15; 86 86 foreach ( get_taxonomies( array(), 'objects' ) as $tax ) {
Note: See TracChangeset
for help on using the changeset viewer.