Opened 12 years ago
Closed 12 years ago
#29876 closed defect (bug) (duplicate)
Document default arguments for WP_Meta_Query
| Reported by: | DrewAPicture | Owned by: | DrewAPicture |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Options, Meta APIs | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs |
Description
The default arguments for WP_Meta_Query need to be documented in the hash notation style. The actual docs would go into the docblock for WP_Meta_Query::__construct().
Here are a couple of good example of documenting default arguments in hash notations:
If it helps, you can use the WP_Meta_Query Codex article to find more information on the default arguments.
This ticket is reserved for new contributors on the good-first-bug keyword.
Attachments (1)
Change History (6)
#1
@
12 years ago
- Keywords has-patch added; needs-patch removed
Sorry if the patch isn't exactly right (first attempt at a patch!). I looked at the codex page for the WP_Meta_Query and copied over the arguments using the hash notation style you requested.
Let me know if something's messed up and I can submit an updated patch.
meta.php patch for #29876