[wp-trac] [WordPress Trac] #40109: Ensure PHP 7.2 compatibility in tests (and core)

WordPress Trac noreply at wordpress.org
Fri Nov 10 22:32:02 UTC 2017


#40109: Ensure PHP 7.2 compatibility in tests (and core)
------------------------------+--------------------------
 Reporter:  ocean90           |       Owner:  johnbillion
     Type:  task (blessed)    |      Status:  closed
 Priority:  normal            |   Milestone:  4.9
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  needs-patch       |     Focuses:
------------------------------+--------------------------

Comment (by westonruter):

 In [changeset:"42147"]:
 {{{
 #!CommitTicketReference repository="" revision="42147"
 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 4.9.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40109#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list