[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 01:20:26 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: closed
Priority: normal | Milestone: 4.9.3
Component: Query | Version: trunk
Severity: normal | Resolution: fixed
Keywords: reporter-feedback needs-unit-tests | Focuses:
------------------------------------------------+---------------------
Changes (by jorbin):
* owner: => jorbin
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"42581"]:
{{{
#!CommitTicketReference repository="" revision="42581"
Query: Fix warning on counting non countable
Adds tests to continue the behavior for both null and strings.
See https://wiki.php.net/rfc/counting_non_countables for information on
the PHP change.
Fixes #42860.
Props janak007 and ayeshrajans for initial patches.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42860#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list