[wp-trac] [WordPress Trac] #42469: WP_Query found_posts inconsistent data type.
WordPress Trac
noreply at wordpress.org
Sun Jul 5 21:32:41 UTC 2020
#42469: WP_Query found_posts inconsistent data type.
-------------------------------------------------+-------------------------
Reporter: PressLabs | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.5
Component: Query | Version:
Severity: normal | Resolution: fixed
Keywords: dev-feedback has-unit-tests has- | Focuses:
patch |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"48328" 48328]:
{{{
#!CommitTicketReference repository="" revision="48328"
Query: Make sure the `found_posts` property of `WP_Query` is always an
integer, to match the documented type.
This makes the property consistent with similar properties of other
classes:
* `WP_Comment_Query::$found_comments`
* `WP_Network_Query::$found_networks`
* `WP_Site_Query::$found_sites`
* `WP_User_Query::$total_users`
Props birgire, PressLabs.
Fixes #42469.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42469#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list