Changeset 16251
- Timestamp:
- 11/09/2010 02:09:00 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r16040 r16251 71 71 continue; 72 72 73 $submenu['edit.php'][$i++] = array( esc_attr( $tax->labels-> name ), $tax->cap->manage_terms, 'edit-tags.php?taxonomy=' . $tax->name );73 $submenu['edit.php'][$i++] = array( esc_attr( $tax->labels->menu_name ), $tax->cap->manage_terms, 'edit-tags.php?taxonomy=' . $tax->name ); 74 74 } 75 75 unset($tax); … … 95 95 continue; 96 96 97 $submenu['edit.php?post_type=page'][$i++] = array( esc_attr( $tax->labels-> name ), $tax->cap->manage_terms, 'edit-tags.php?taxonomy=' . $tax->name . '&post_type=page' );97 $submenu['edit.php?post_type=page'][$i++] = array( esc_attr( $tax->labels->menu_name ), $tax->cap->manage_terms, 'edit-tags.php?taxonomy=' . $tax->name . '&post_type=page' ); 98 98 } 99 99 unset($tax); … … 126 126 $ptype_menu_position++; 127 127 128 $menu[$ptype_menu_position] = array( esc_attr( $ptype_obj->labels-> name ), $ptype_obj->cap->edit_posts, "edit.php?post_type=$ptype", '', 'menu-top menu-icon-' . $ptype_class, 'menu-posts-' . $ptype_for_id, $menu_icon );129 $submenu["edit.php?post_type=$ptype"][5] = array( $ptype_obj->labels-> name, $ptype_obj->cap->edit_posts, "edit.php?post_type=$ptype");128 $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 ); 129 $submenu["edit.php?post_type=$ptype"][5] = array( $ptype_obj->labels->menu_name, $ptype_obj->cap->edit_posts, "edit.php?post_type=$ptype"); 130 130 $submenu["edit.php?post_type=$ptype"][10] = array( $ptype_obj->labels->add_new, $ptype_obj->cap->edit_posts, "post-new.php?post_type=$ptype" ); 131 131 … … 135 135 continue; 136 136 137 $submenu["edit.php?post_type=$ptype"][$i++] = array( esc_attr( $tax->labels-> name ), $tax->cap->manage_terms, "edit-tags.php?taxonomy=$tax->name&post_type=$ptype" );137 $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" ); 138 138 } 139 139 } -
trunk/wp-includes/post.php
r16206 r16251 1143 1143 'not_found' => array( __('No posts found.'), __('No pages found.') ), 1144 1144 'not_found_in_trash' => array( __('No posts found in Trash.'), __('No pages found in Trash.') ), 1145 'parent_item_colon' => array( null, __('Parent Page:') ) 1145 'parent_item_colon' => array( null, __('Parent Page:') ), 1146 1146 ); 1147 $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; 1147 1148 return _get_custom_object_labels( $post_type_object, $nohier_vs_hier_defaults ); 1148 1149 } -
trunk/wp-includes/taxonomy.php
r16059 r16251 404 404 'choose_from_most_used' => array( __( 'Choose from the most used tags' ), null ), 405 405 ); 406 $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; 406 407 407 408 return _get_custom_object_labels( $tax, $nohier_vs_hier_defaults );
Note: See TracChangeset
for help on using the changeset viewer.