WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#16190 closed defect (bug) (fixed)

Category drop down has no default value

Reported by: johnjamesjacoby Owned by: 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 5 years ago.
Set default category on post list
16190.diff (1.2 KB) - added by koopersmith 5 years ago.

Download all attachments as: .zip

Change History (6)

@johnjamesjacoby5 years ago

Set default category on post list

comment:1 @nacin5 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.

@koopersmith5 years ago

comment:2 @koopersmith5 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.

comment:3 @markjaquith5 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

comment:4 @markjaquith5 years ago

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

Note: See TracTickets for help on using tickets.