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

WordPress Trac noreply at wordpress.org
Fri Nov 10 22:29:49 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:"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/40109#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list