Introduce menu_name label for taxonomies and post types. Defaults to name. fixes #14832.

git-svn-id: https://develop.svn.wordpress.org/trunk@16251 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-11-09 02:09:00 +00:00
parent 07522b17d1
commit c165557b3e
3 changed files with 8 additions and 6 deletions

View File

@@ -1142,8 +1142,9 @@ function get_post_type_labels( $post_type_object ) {
'search_items' => array( __('Search Posts'), __('Search Pages') ),
'not_found' => array( __('No posts found.'), __('No pages found.') ),
'not_found_in_trash' => array( __('No posts found in Trash.'), __('No pages found in Trash.') ),
'parent_item_colon' => array( null, __('Parent Page:') )
'parent_item_colon' => array( null, __('Parent Page:') ),
);
$nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
return _get_custom_object_labels( $post_type_object, $nohier_vs_hier_defaults );
}