#176 closed defect (bug)
categories.php showing wrong default category
Reported by: | Tomcat | Owned by: | Kitten |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 1.2 |
Component: | Administration | Keywords: | |
Focuses: | Cc: |
Description
The categories section in my admin area says:
Deleting a category does not delete posts from that category, it will just set them back to the default category University.
My default category is another one though. The file wp-admin/categories.php uses get_catname(1) to get the category, although 1 might not necessarily be my default category.
I'm not sure if this is only a visual bug or if this is also wrong when I delete a category. Should be easy to fix though.
Attachments (1)
Change History (8)
#3
@
20 years ago
The default category I set up when I installed WordPress was University. University was/is category 1.
In the meantime I added a new category "General pap", which I set as default category. WordPress sees it as default category everywhere, except in categories.php.
So, Category 1 was renamed by me, yes. But it's not the default category anymore (can be changed in the options), and I did not change anything in the database directly.
I don't want to delete the default category, I just want the posts in a deleted category move into the correct default category.
edited on: 07-24-04 22:23
Category 1 is "General," (unless you renamed it) which is the default category, which cannot be deleted through the admin interface. Did you go into the database manually and change something?
By definition, the default category is category 1, and category 1 can't be deleted.
edited on: 07-24-04 16:29