Changeset 12993 for trunk/wp-admin/menu.php
- Timestamp:
- 02/06/2010 05:27:30 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/menu.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r12984 r12993 82 82 $_wp_last_object_menu = 25; // The index of the last top-level menu in the object menu group 83 83 84 foreach ( (array) get_post_types( array(' _show' => true) ) as $ptype ) {84 foreach ( (array) get_post_types( array('show_ui' => true) ) as $ptype ) { 85 85 $_wp_last_object_menu++; 86 86 $ptype_obj = get_post_type_object($ptype); 87 $menu[$_wp_last_object_menu] = array(esc_attr($ptype_obj->label), 'edit_' . $ptype_obj->capability_type . 's', "edit.php?post_type=$ptype", '', 'menu-top', 'menu-posts', 'div');87 $menu[$_wp_last_object_menu] = array(esc_attr($ptype_obj->label), $ptype_obj->edit_type_cap, "edit.php?post_type=$ptype", '', 'menu-top', 'menu-posts', 'div'); 88 88 $submenu["edit.php?post_type=$ptype"][5] = array( __('Edit'), 'edit_posts', "edit.php?post_type=$ptype"); 89 89 /* translators: add new custom post type */
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)