[wp-trac] [WordPress Trac] #42498: Replace count() call with empty() in get_settings_errors() to prevent PHP 7.2 warnings
WordPress Trac
noreply at wordpress.org
Fri Nov 10 22:29:47 UTC 2017
#42498: Replace count() call with empty() in get_settings_errors() to prevent PHP
7.2 warnings
-------------------------------------------------+-------------------------
Reporter: pross | Owner:
Type: defect (bug) | westonruter
Priority: normal | Status: closed
Component: General | Milestone: 4.9
Severity: normal | Version:
Keywords: has-patch has-unit-tests dev- | Resolution: fixed
reviewed commit | Focuses:
-------------------------------------------------+-------------------------
Changes (by westonruter):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"42146"]:
{{{
#!CommitTicketReference repository="" revision="42146"
Settings: Replace `count()` call with `empty()` in `get_settings_errors()`
to prevent PHP 7.2 warnings when `$wp_settings_errors` is `null`.
Props pross, dd32, westonruter.
See #40109.
Fixes #42498 for trunk.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42498#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list