Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#13531 closed defect (bug) (fixed)

Default Category Behavior for New Posts

Reported by: hew's profile hew Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: UI Keywords: category
Focuses: Cc:

Description

3.0 now automatically checks the default category BEFORE new post publication.

2.9.2 used to have all categories unchecked and appended the default category--if the user did not explicitly select a category--AFTER publication.

2.9.2 behavior seems preferable as being cleaner and easier from a user's perspective.

Attachments (1)

13531.diff (1.5 KB) - added by ryan 14 years ago.
Don't see default category for auto-drafts

Download all attachments as: .zip

Change History (8)

#1 @nacin
14 years ago

  • Milestone changed from Unassigned to 3.0

This is, I imagine, the result of auto-drafts.

#2 @dd32
14 years ago

  • Type changed from enhancement to defect (bug)

the result of auto-drafts.

Sounds quite likely to me, Perhaps the Default category should only be applied if the post is moving to the published state? (Would cause a problem for /%category%/ permalinks however)

#3 follow-up: @markel
14 years ago

The confusion for the user is multiplied when the default category has any hierarchy beneath it, as selected categories are automatically removed from the hierarchy (see #3130) and their children (and grandchildren, etc.) are displayed flat.

#4 @ryan
14 years ago

If auto-draft then don't save taxonomy relationships?

@ryan
14 years ago

Don't see default category for auto-drafts

#5 in reply to: ↑ 3 ; follow-up: @nacin
14 years ago

Replying to markel:

The confusion for the user is multiplied when the default category has any hierarchy beneath it, as selected categories are automatically removed from the hierarchy (see #3130) and their children (and grandchildren, etc.) are displayed flat.

That's another thing at play: #10982, #3130.

Ryan's patch seems sensible.

#6 @ryan
14 years ago

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

(In [14883]) Don't set default category when saving an auto-draft. fixes #13531

#7 in reply to: ↑ 5 @markel
14 years ago

Replying to nacin:

That's another thing at play: #10982, #3130.

Ryan's patch seems sensible.

Not arguing for change to the hierarchy problem, but pointing out that it exacerbates the default category being selected automatically.

Note: See TracTickets for help on using tickets.