Make WordPress Core

Opened 19 years ago

Closed 17 years ago

Last modified 17 years ago

#1287 closed enhancement (invalid)

Deleting category should not always add default cat to posts

Reported by: ozh's profile Ozh Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.5.1
Component: Administration Keywords:
Focuses: Cc:

Description

When deleting a category, Worpdress doesn't set them to the default category : it *adds* the default category.

I think this is a normal behaviour when a post has only one category. However, I think this is unwanted when posts have more than one category, and the default category should not be added

Example : a post filed in :
"Code, PHP, Wordpress, Cool"
When deleting the "Cool" category :
"Code, PHP, Wordpress, General"
Doesn't make much sense in my opinion :)

So my opinion (opinion of a user who just went under recategorizing 250 posts) is that when a post has multiple cat, don't add default cat when deleting one. Of course if the post end up belonging to none, add default one.

Sorry for not writing something more short

Change History (3)

#1 @Ozh
19 years ago

  • Patch set to No

#2 @rob1n
17 years ago

  • Resolution set to invalid
  • Status changed from new to closed

The code's there, and as far as I can tell, it works. Old bug.

#3 @markjaquith
17 years ago

This bug is fixed for 2.1.x and higher. It is not fixed for 2.0.x branch. I looked into fixing it, but it would be a lot of code, due to the 2.1 method using functions not available in 2.0.x After spending about a half hour on it, I aborted, and decided that it was too big of a change for an issue of minor importance.

Note: See TracTickets for help on using tickets.