Alert message, "No tags found!" cannot be set for a non-hierarchical custom taxonomy.
|Reported by:||alexmansfield||Owned by:||SergeyBiryukov|
I think the easiest way to explain this will be by stepping through the process I used to find this bug.
- Create a new non-hierarchical taxonomy (non-hierarchical just means they function like tags, not categories). For the sake of argument, let's say this taxonomy applies to posts.
- Go view a post in the admin (or create a new post). The meta box for the bew taxonomy is displayed and contains an input box for creating items in this taxonomy, a message about separating multiple items with commas, and a link to view the most used items in the taxonomy. The text for this link can be set when creating a custom taxonomy, which is great!
- Click the link to display the most used items in this taxonomy. Typically this displays a tag cloud of the most used items. However, if no items have been saved yet, it instead displays the message: "No tags found!"
The text for this message cannot be set when creating a custom taxonomy. Regardless of the taxonomy name, the word "tags" is used.
I've attached an image of a custom taxonomy called "Classifications" where the "tags" message is still in use.
This message is defined on line 654 of the wp-admin/includes/ajax-actions.php file (at least it is in WordPress 3.5.1).
Since this isn't in the same file as the rest of the labels that can be set when creating a taxonomy, I'm not sure how to go about making it editable. Maybe just change the text from "No tags found!" to "None found!" I can't say it's the greatest solution, but at least it wouldn't say the word "tags" when the taxonomy isn't actually "tags".
Change History (17)
4 years ago
- Keywords ui-feedback removed
- Milestone changed from Awaiting Review to 3.6
- Version changed from 3.5.1 to 3.0
3 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed