Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#16190 closed defect (bug) (fixed)

Category drop down has no default value

Reported by: johnjamesjacoby's profile johnjamesjacoby Owned by: koopersmith's profile koopersmith
Milestone: 3.1 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: Cc:

Description

When viewing the posts list, the default $cat is set to an empty string. Casting it as an int sets the default if no global $cat is set.

Attachments (2)

default-category.patch (705 bytes) - added by johnjamesjacoby 14 years ago.
Set default category on post list
16190.diff (1.2 KB) - added by koopersmith 14 years ago.

Download all attachments as: .zip

Change History (6)

@johnjamesjacoby
14 years ago

Set default category on post list

#1 @nacin
14 years ago

  • Owner set to koopersmith
  • Status changed from new to assigned

The other aspect to this is koopersmith's pesudo-reset code in #16098. He's looking into it.

@koopersmith
14 years ago

#2 @koopersmith
14 years ago

  • Keywords has-patch added

Patch attempts to simulate browser behavior by selecting the first element in a dropdown (not a multi-select) if no elements are selected by default.

#3 @markjaquith
14 years ago

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

(In [17252]) Simulate browser behavior for selecting first dropdown element in non-multiselect, if no elements are selected by default. props koopersmith. fixes #16190

#4 @markjaquith
14 years ago

(In [17253]) Minify and bump list-table.js see #16190

Note: See TracTickets for help on using tickets.