Make WordPress Core

Opened 20 years ago

Closed 20 years ago

Last modified 9 years ago

#176 closed defect (bug)

categories.php showing wrong default category

Reported by: tomcat's profile Tomcat Owned by: kitten's profile 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)

0000176-categories.diff (1.2 KB) - added by Tomcat 20 years ago.

Download all attachments as: .zip

Change History (8)

#2 @anonymousbugger
20 years ago

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

#3 @anonymousbugger
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

#4 @Kitten
20 years ago

Fixed in attached diff.

#5 @Kitten
20 years ago

  • Owner changed from anonymous to Kitten
  • Status changed from new to assigned

#6 @Kitten
20 years ago

  • Status changed from assigned to closed

Fixed

This ticket was mentioned in Slack in #feature-shinyupdates by mapk. View the logs.


9 years ago

Note: See TracTickets for help on using tickets.