Make WordPress Core

Opened 11 years ago

Closed 10 years ago

#34545 closed enhancement (fixed)

'parent_item' taxonomy label should be used in tag edit form

Reported by: abrain Owned by: boonebgorges
Priority: normal Milestone: 4.8
Component: Taxonomy Version:
Severity: normal Keywords: has-patch
Cc: Focuses: ui

Description

When adding or editing hierarchical taxonomies, the label for the parent dropdown is always 'Parent'. This might be confusing for the user when dealing with custom taxonomies where the term 'Parent' is not the best fit. Instead, the taxonomy's 'parent_item' label should be used, as it is done in post_categories_meta_box().

Attachments (1)

34545.diff​ (1.1 KB ) - added by dlh 10 years ago.

Download all attachments as: .zip

Change History (4)

#1 follow-up: @dlh
10 years ago

  • Keywords has-patch added
  • Version 4.3.1

34545.diff​ would implement this suggestion on edit-tags.php and edit-tag-form.php.

I would also note that when a taxonomy doesn't define the parent_item label, the default is used, which is currently Parent Category, and which might not be a good fit either.

So, an alternative approach could be to use a generic string (like Parent or Parent Term) everywhere.

#2 in reply to: ↑ 1 @johnbillion
10 years ago

  • Milestone Awaiting Review → 4.8

Replying to dlh:

I would also note that when a taxonomy doesn't define the parent_item label, the default is used, which is currently Parent Category, and which might not be a good fit either.

All the labels fall back to their Category/Tag version, so this is fine as-is.

#3 @boonebgorges
10 years ago

  • Owner set to boonebgorges
  • Resolution → fixed
  • Status new → closed

In 40146:

Taxonomy: Improve 'Parent' label when editing taxonomy terms.

Instead of the hardcoded 'Parent', use the parent_item label.

Props abrain, dlh.
Fixes #34545.

Note: See TracTickets for help on using tickets.