#27252 closed defect (bug) (fixed)
WP_Query's "fields" => "ids" should return an array of integers
| Reported by: | danielbachhuber | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.9 |
| Component: | Query | Version: | |
| Severity: | normal | Keywords: | has-patch dev-feedback |
| Cc: | Focuses: |
Description
When using WP_Query's "fields" => "ids" (or "fields" => "id=>parent"), the returned values should be an array of integers, not array of integers represented by strings.
The current, latter behavior causes a subsequent WP_Query with post__in to fail because it's being passed an array of strings.
Attachments (1)
Change History (6)
This ticket was mentioned in IRC in #wordpress-dev by wonderboymusic. View the logs.
13 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Cast returned post IDs as integers