Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#3281 closed defect (bug) (wontfix)

Default category not checked when composing new post

Reported by: alexkingorg's profile alexkingorg Owned by:
Milestone: Priority: low
Severity: trivial Version: 2.1
Component: Administration Keywords:
Focuses: Cc:

Description

I may be missing something, but I'm not seeing my default category checked when composing a new post in WP 2.1 (trunk).

Tracking back from the 'dropdown_categories' in edit-form-advanced, I see a call to 'write_nested_categories' which passes in the array result of 'get_nested_categories'. So assuming I'm reading this right, the category stuff should be set in 'get_nested_categories'.

In 'get_nested_categories', I see a query to get categories for the post, but no call to 'get_option('default_category')' to set the default category - instead it is set to the $default argument which is never populated in this chain. It *is* populated for links:

wp-admin/edit-link-form.php:46: <ul id="categorychecklist"><?php dropdown_link_categories(get_option('default_link_category')); ?></ul>

This seems like a bug to me, but the chain is deep and I don't know the ins and outs of the admin logic so I'm not sure exactly at what level it needs to be fixed.

Change History (7)

#1 @zamoose
17 years ago

  • Priority changed from normal to low
  • Resolution set to wontfix
  • Severity changed from major to trivial
  • Status changed from new to closed

Alex:
This behavior is intentional. Check #4311.

#3 @foolswisdom
17 years ago

Hi alexkingorg,

If I understand correctly this seems to be the desired behavior based on ticket:2938.

It seems that both this and the previous behavior have some awkwardness, maybe there design issue has another solution.

#4 @markjaquith
17 years ago

Intentional behavior. Many people regard the default category as something that should only be checked if no other category is selected, not as something that should always be checked. A quick save with no category set will set the default category.

As always, open to arguments why this is a bad idea, but I've gotten a lot of positive feedback from people who were tired of having to uncheck "Uncategorized" every time they published a post.

#5 @alexkingorg
17 years ago

Better put something in the release notes about this, as an existing user this seems like it's "broken".

#6 @alexkingorg
17 years ago

Perhaps add something to the "Default post category:" text saying "this is used if no categories are selected", or similar.

#7 @Nazgul
16 years ago

  • Milestone 2.1 deleted
Note: See TracTickets for help on using tickets.