[wp-trac] [WordPress Trac] #4501: get_terms is not displaying terms
with a count of 0.
WordPress Trac
wp-trac at lists.automattic.com
Wed Jun 20 21:54:49 GMT 2007
#4501: get_terms is not displaying terms with a count of 0.
----------------------------+-----------------------------------------------
Reporter: cavemonkey50 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.3 (trunk)
Component: Administration | Version: 2.3
Severity: major | Keywords:
----------------------------+-----------------------------------------------
I've found that get_terms is not outputting terms which have a count of 0
in term_taxonomy. This can be a problem for newly created categories,
causing them to be lost in the database if they're not added to a post
immediately. Essentially, there is no way to display terms which are not
assigned to objects, allowing for numerous orphaned terms in the database.
To recreate:
- Create a new category on a post
- Uncheck the category
- Save the post
- Category is missing, however database still shows the category, but
there is no way to access it
--
Ticket URL: <http://trac.wordpress.org/ticket/4501>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list