#53467 closed enhancement (fixed)
Correct and standardise the meta query documentation
| Reported by: | johnbillion | Owned by: | johnbillion |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.9 |
| Component: | Query | Version: | |
| Severity: | normal | Keywords: | has-patch dev-feedback |
| Cc: | Focuses: | docs |
Description
The following query classes all support meta_* arguments because they pass their arguments onto WP_Meta_Query, however their documentation is inconsistent, incomplete, and in some cases incorrect.
WP_Comment_QueryWP_QueryWP_Site_QueryWP_Term_QueryWP_User_Query
Notably, WP_Query documents a meta_value_num argument which does not exist. This was erroneously introduced in [28887]. meta_value_num is an allowed value for orderby arguments, but is not the name of an argument itself.
Let's standardise the documentation and guide users to WP_Meta_Query for the canonical documentation.
Change History (9)
This ticket was mentioned in PR #1399 on WordPress/wordpress-develop by johnbillion.
5 years ago
#1
- Keywords has-patch added
5 years ago
#5
@johnbillion I resolved the conflicts, but I left the indentation as it was in your previous proposal.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/53467