#34417 closed enhancement (invalid)
no_found_rows argument for WP_Query does not exist but is used in Recent Posts widget
| Reported by: | alexvorn2 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Widgets | Version: | |
| Severity: | normal | Keywords: | needs-codex |
| Cc: | Focuses: |
Description
in \wp-includes\widgets\class-wp-widget-recent-posts.php we have this argument in the array of arguments but in I can't find it in https://codex.wordpress.org/Class_Reference/WP_Query docs page.
I think it was used a long time ago and still have not been removed.
Change History (6)
#2
@
11 years ago
See also https://developer.wordpress.org/reference/classes/wp_query/parse_query/ for an online version of the docs.
As already mentioned, feel free to update the Codex page.
#5
@
11 years ago
- Milestone Awaiting Review
- Resolution → invalid
- Status new → closed
- Version trunk
The Code Reference is the better resource if you want to know which function/class/method supports which arguments/properties.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
If you look at the actual
WP_Queryclass, it's in there, documented in the PHPDoc forWP_Query::parse_query(). If it needs to be added to the Codex page, it's a wiki. It's definitely an argument that works and is used frequently to scale queries better as appropriate.