Make WordPress Core

Opened 20 years ago

Closed 19 years ago

#2340 closed enhancement (fixed)

Manage posts: restrict to one category

Reported by: thomasquinotorg's profile thomas@… Owned by: westi's profile westi
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.0
Component: Administration Keywords: bg|has-patch bg|commit
Focuses: Cc:

Description

The attached patch adds a dropdown list on the Manage posts page that allows restricting the display to one category.

Attachments (4)

p (802 bytes) - added by thomas 20 years ago.
edit.php.diff (883 bytes) - added by westi 20 years ago.
Improved patch
2340.diff (910 bytes) - added by westi 19 years ago.
Patch rebased against trunk
2340.2.diff (630 bytes) - added by westi 19 years ago.
Use wp_dropdown_categories instead

Download all attachments as: .zip

Change History (9)

@thomas
20 years ago

  • Attachment p added

#1 @westi
20 years ago

  • Keywords bg|has-patch added
  • Milestone set to 2.1
  • Owner changed from anonymous to westi
  • Status changed from new to assigned

This looks good.

Adding updated patch which also sets the dropdown to show the currently selected category as it doesn't seem to by default - this may be a bug in dropdown_cats as the codex page says:

selected - (integer) Sets the default selected category ID number. Defaults to current category.

@westi
20 years ago

Improved patch

#2 @westi
20 years ago

  • Keywords bg|commit added

@westi
19 years ago

Patch rebased against trunk

#3 @westi
19 years ago

I've rebased my patch against trunk.

I think this is as really useful feature

#4 @ryan
19 years ago

Can we start using wp_dropdown_categories() in the admin?

@westi
19 years ago

Use wp_dropdown_categories instead

#5 @ryan
19 years ago

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

(In [4137]) Add Browse Category dropdown. Props westi and thomas. fixes #2340

Note: See TracTickets for help on using tickets.