[wp-trac] [WordPress Trac] #33148: Categories are missing in admin category list when child category linked to non-existant parent id

WordPress Trac noreply at wordpress.org
Wed Jan 20 22:38:56 UTC 2016


#33148: Categories are missing in admin category list when child category linked to
non-existant parent id
--------------------------+------------------------------
 Reporter:  ShawnLunny    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Taxonomy      |     Version:  4.2.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  administration
--------------------------+------------------------------
Changes (by ShawnLunny):

 * keywords:  reporter-feedback =>


Comment:

 I was unable to reproduce the issue doing basic wordpress actions so I
 must assume this issue came from a plugin or something else like a db
 query or custom code. Having the issue be dated back to a previous
 wordpress 2 versions back doesn't help and the issue hasn't happened
 again. Either way here is what I tested.

 Tested criteria:

 1. Created a parent-child-grand-child (A->A1->A2) category set in the
 category tab. Added some posts, and deleted the child (A1) without issue.
 Category (after page refresh which was required to see the change)
 realigned to the parent-child (A->A2) as appropriate. So in other words
 could not reproduce the issue.

 2. Tested the same criteria as in 1. but created the categories on the Add
 a Post page without issue.

 3. Tested with great-grandchildren (A->A1->A2->A3), twice with the first
 time removing (A1) and then an attempt with removing (A2) on the
 categories tab. Could not reproduce the issue.

 4. Tested the same as on 3. in the Add a post page, could not reproduce
 the issue.

 5. Tested with some sub-categories on the children
 (A->A1->A1a->A1a1->A1b->A2->A3->A4). Attempted to remove (A2), as well as
 same structure removing (A1a). Could not reproduce the issue.

 6. Tested the same as 5. but on the Add a post page. Could not reproduce
 the issue.

 7. Tried similar tests as in 3. and 5. above but instead of deleting the
 category tried to align it to a different parent and see if its
 grandchildren had an issue. For example started with (A->A1->A2->A3) and
 moved that sub-tree under a new category with the result (B->A1->A2->A3
 i.e the new B->B1->B2->B3). Could not reproduce the issue.

 So I am usure where this would leave this item? Do we add sanity
 checking/prevention just in case @boonebgorges ?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33148#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list