[wp-trac] [WordPress Trac] #23597: Alert message, "No tags found!" cannot be set for a non-hierarchical custom taxonomy.

WordPress Trac noreply at wordpress.org
Sun Feb 24 06:16:18 UTC 2013


#23597: Alert message, "No tags found!" cannot be set for a non-hierarchical custom
taxonomy.
-----------------------------+--------------------------
 Reporter:  alexmansfield    |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Taxonomy
  Version:  3.5.1            |   Severity:  normal
 Keywords:  ui-feedback      |
-----------------------------+--------------------------
 I think the easiest way to explain this will be by stepping through the
 process I used to find this bug.

 1. 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.

 2. 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!

 3. 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".

 Any thoughts?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23597>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list