[wp-trac] [WordPress Trac] #14093: Malformed category hidden from edit-tags, but shows in meta box

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 25 19:11:49 UTC 2010


#14093: Malformed category hidden from edit-tags, but shows in meta box
--------------------------+-------------------------------------------------
 Reporter:  nacin         |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  low           |   Milestone:  Awaiting Review
Component:  Taxonomy      |     Version:                 
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------
 Came from a report in IRC by xomp.

 In the following example, category 1's parent is category 2, and vice
 versa.
 {{{
 mysql> select term_taxonomy_id, term_id, taxonomy, parent from
 wp_term_taxonomy;
 +------------------+---------+---------------+--------+
 | term_taxonomy_id | term_id | taxonomy      | parent |
 +------------------+---------+---------------+--------+
 |                1 |       1 | category      |      2 |
 |                2 |       2 | category      |      1 |
 |                3 |       3 | category      |      0 |
 |                4 |       4 | category      |      1 |
 +------------------+---------+---------------+--------+
 4 rows in set (0.00 sec)

 mysql> select term_id, name from wp_terms;
 +---------+-----------------+
 | term_id | name            |
 +---------+-----------------+
 |       1 | Category 1      |
 |       2 | Category 2      |
 |       3 | Category 3      |
 |       4 | Category 4      |
 +---------+-----------------+
 4 rows in set (0.00 sec)
 }}}
 On edit-tags, you'll see only Category 3.

 In the hierarchical meta box, you'll see:
 {{{
 Category 3
 Category 1
  - Category 2
  - Category 4
 }}}
 If we decide to show corrupted data, we should be consistent. At the very
 least, edit-tags should reveal more than the meta box, not the other way
 around.

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


More information about the wp-trac mailing list