Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#34417 closed enhancement (invalid)

no_found_rows argument for WP_Query does not exist but is used in Recent Posts widget

Reported by: alexvorn2's profile alexvorn2 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Widgets Keywords: needs-codex
Focuses: Cc:

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)

#1 @helen
9 years ago

If you look at the actual WP_Query class, it's in there, documented in the PHPDoc for WP_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.

#2 @swissspidy
9 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.

#3 @alexvorn2
9 years ago

  • Keywords needs-codex added

#4 @SergeyBiryukov
9 years ago

  • Component changed from General to Widgets

#5 @ocean90
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version trunk deleted

The Code Reference is the better resource if you want to know which function/class/method supports which arguments/properties.

This ticket was mentioned in Slack in #meta by sergey. View the logs.


9 years ago

Note: See TracTickets for help on using tickets.