Opened 12 years ago
Closed 12 years ago
#25514 closed defect (bug) (fixed)
Hook Docs (47): wp-includes/query.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.9 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Query | Keywords: | has-patch commit |
| Focuses: | docs | Cc: |
Description
Added hook documentation for the following actions/filters found in wp-includes/query.php:
parse_queryparse_tax_querypre_get_postsposts_whereposts_joincomment_feed_joincomment_feed_wherecomment_feed_groupbycomment_feed_orderbycomment_feed_limitsposts_where_pagedposts_groupbyposts_join_pagedposts_orderbyposts_distinctpost_limitsposts_fieldsposts_clausesposts_selectionposts_where_requestposts_groupby_requestposts_join_requestposts_orderby_requestposts_distinct_requestposts_fields_requestpost_limits_requestposts_clauses_requestposts_requestsplit_the_queryposts_request_idsposts_resultscomment_feed_joincomment_feed_wherecomment_feed_groupbycomment_feed_orderbycomment_feed_limitsthe_previewthe_postsfound_posts_queryfound_postsloop_startloop_endcomment_loop_startthe_post
Attachments (8)
Change History (34)
#2
@
12 years ago
Attached revised version, but I thought these were to be documented for how the hooks should be used; any hook callbacks using these won't be passed an array, but the individual items within the array (e.g. "posts_where" receives the arguments $where and $wp_query; not array($where, $wp_query)).
Also, my other patch (#25495
The formatting for the arguments documented in WP_Query-hook-docs.diffβ isn't quite correct.
Arguments in array format (ie. those passed to
apply_filters_ref_array()anddo_action_ref_array()should use hash notation. See βhttp://make.wordpress.org/core/handbook/inline-documentation-standards/php-documentation-standards/#4-hooks-actions-and-filters