Opened 14 years ago
Closed 14 years ago
#18638 closed defect (bug) (fixed)
Add "name" to allowed_keys for sortable table list columns
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.3 | Priority: | normal |
Severity: | normal | Version: | 3.2.1 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
WP currently supports adding the slug as a column to tables in the admin area. However there is no way to make it a sortable column because post_"name" can never be handled by the default case since the meta key will attempt to load from meta data or die from not passing the allowed_keys whitelist.
The attached patch simply adds "name" to the allowed keys array.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
postname is keyed, so this seems fine.