[wp-trac] [WordPress Trac] #3460: Duplicated default category after deleting a category
WordPress Trac
noreply at wordpress.org
Mon Feb 12 05:29:53 UTC 2024
#3460: Duplicated default category after deleting a category
----------------------------+--------------------------
Reporter: zhouqb | Owner: markjaquith
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Administration | Version: 2.0.5
Severity: normal | Resolution: wontfix
Keywords: category | Focuses:
----------------------------+--------------------------
Comment (by merlinxvqzy1):
Are you encountering an issue where deleting a category results in all
posts under it being assigned the default category? A better approach
would involve checking if posts have been assigned another category before
applying the default category. Additionally, there is a bug where if a
post was assigned both the deleted category and the default category, the
default category will be assigned again, resulting in duplicate entries in
the wp_post2cat table. Implementing a check to avoid assigning the default
category in such cases would prevent this issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/3460#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list