[wp-trac] [WordPress Trac] #42860: PHP 7.2 warning - Parameter must be an array or an object that implements Countable in /wp-includes/class-wp-query.php on line 3035
WordPress Trac
noreply at wordpress.org
Wed Jan 24 17:38:59 UTC 2018
#42860: PHP 7.2 warning - Parameter must be an array or an object that implements
Countable in /wp-includes/class-wp-query.php on line 3035
--------------------------+-----------------------
Reporter: lisota | Owner: jorbin
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.9.3
Component: Query | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+-----------------------
Comment (by SergeyBiryukov):
To clarify a bit, [42581] does keep the previous behavior, I'm just not
sure it's correct. If `$this->posts` is `false` or an empty string, I'd
expect `found_posts` to be 0.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42860#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list