Introduce menu_name label for taxonomies and post types. Defaults to name. fixes #14832.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
@@ -403,6 +403,7 @@ function get_taxonomy_labels( $tax ) {
|
||||
'add_or_remove_items' => array( __( 'Add or remove tags' ), null ),
|
||||
'choose_from_most_used' => array( __( 'Choose from the most used tags' ), null ),
|
||||
);
|
||||
$nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
|
||||
|
||||
return _get_custom_object_labels( $tax, $nohier_vs_hier_defaults );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user