Opened 14 years ago
Closed 13 years ago
#15970 closed defect (bug) (duplicate)
Hyphen in custom post type breaks admin pagination
Reported by: | ejdanderson | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.1 |
Component: | Posts, Post Types | Keywords: | has-patch 3.2-early |
Focuses: | Cc: |
Description
Custom post types with a hyphen (possibly other non-alphabetical/numeric) in their name break pagination on the admin side. I was unable to navigate past the first page and I could not set the screen option to display a custom number of posts per page.
Attachments (3)
Change History (13)
#3
@
14 years ago
- Milestone changed from Awaiting Review to Future Release
Since this is not a recent regression and there is an easy workaround for plugin authors, let's punt this to 3.2 instead of addressing for 3.1.
#4
@
14 years ago
After a little more testing and initially setting this ticket to invalid, I found that it was not the hyphen breaking the pagination but rather the has_archive argument. See ticket:16013
The hyphen does appear to break the ability to set the show on screen number.
Note: See
TracTickets for help on using
tickets.
Since sanitize_key() allows hyphens, we should probably handle this.