Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 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 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)

#1 @helen
11 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
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.

#3 @alexvorn2
11 years ago

  • Keywords needs-codex added

#4 @SergeyBiryukov
11 years ago

  • Component GeneralWidgets

#5 @ocean90
11 years ago

  • Milestone Awaiting Review
  • Resolutioninvalid
  • Status newclosed
  • Version trunk

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.


11 years ago

Note: See TracTickets for help on using tickets.