Ticket #16381: menu.php.patch
| File menu.php.patch, 1.6 KB (added by , 16 years ago) |
|---|
-
wp-admin/menu.php
127 127 while ( isset($menu[$ptype_menu_position]) || in_array($ptype_menu_position, $core_menu_positions) ) 128 128 $ptype_menu_position++; 129 129 130 $menu[$ptype_menu_position] = array( esc_attr( $ptype_obj->labels->menu_name ), $ptype_obj->cap->edit_posts, "edit.php?post_type=$ptype", '', 'menu-top menu-icon-' . $ptype_class, 'menu-posts-' . $ptype_for_id, $menu_icon ); 130 $menu_name = apply_filters( "admin_menu_label_$ptype", $ptype_obj->labels->menu_name ); 131 $menu[$ptype_menu_position] = array( esc_attr( $menu_name ), $ptype_obj->cap->edit_posts, "edit.php?post_type=$ptype", '', 'menu-top menu-icon-' . $ptype_class, 'menu-posts-' . $ptype_for_id, $menu_icon ); 131 132 $submenu["edit.php?post_type=$ptype"][5] = array( $ptype_obj->labels->menu_name, $ptype_obj->cap->edit_posts, "edit.php?post_type=$ptype"); 132 133 $submenu["edit.php?post_type=$ptype"][10] = array( $ptype_obj->labels->add_new, $ptype_obj->cap->edit_posts, "post-new.php?post_type=$ptype" ); 133 134 … … 139 140 $submenu["edit.php?post_type=$ptype"][$i++] = array( esc_attr( $tax->labels->menu_name ), $tax->cap->manage_terms, "edit-tags.php?taxonomy=$tax->name&post_type=$ptype" ); 140 141 } 141 142 } 142 unset($ptype, $ptype_obj, $ptype_class, $ptype_for_id, $ptype_menu_position, $menu_icon, $ i, $tax);143 unset($ptype, $ptype_obj, $ptype_class, $ptype_for_id, $ptype_menu_position, $menu_icon, $menu_name, $i, $tax); 143 144 144 145 $menu[59] = array( '', 'read', 'separator2', '', 'wp-menu-separator' ); 145 146
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)