Opened 15 years ago
Closed 13 years ago
#20376 closed defect (bug) (fixed)
wp_list_pages fails with meta_value=0 criteria
| Reported by: | Big Tick | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.6 |
| Component: | Query | Version: | 3.3.1 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
The following code will ignore the meta_key filtering. In other words, wp_list_pages can't test for a meta_value of 0.
wp_list_pages(
array(
'meta_key' => 'a_custom_key',
'meta_value' => '0'
)
)
Attachments (5)
Change History (21)
#5
@
14 years ago
- Keywords needs-patch added; has-patch removed
- Milestone 3.5 → Future Release
- Resolution fixed
- Status closed → reopened
See #22389.
#12
@
14 years ago
Refreshed 20376.3.patch and added unit tests for meta queries in get_pages and wp_dropdown_pages in 20376.tests.diff.
#13
@
13 years ago
20376.4.patch refreshes .3
#14
@
13 years ago
In 1279/tests:
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related: #15292