[wp-trac] [WordPress Trac] #44416: `compact()` will throw notice for undefined variables in PHP 7.3

WordPress Trac noreply at wordpress.org
Mon Dec 3 19:31:53 UTC 2018


#44416: `compact()` will throw notice for undefined variables in PHP 7.3
-------------------------------------------+-----------------------------
 Reporter:  desrosj                        |       Owner:  SergeyBiryukov
     Type:  defect (bug)                   |      Status:  reopened
 Priority:  normal                         |   Milestone:  5.0
Component:  General                        |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  php73 has-patch needs-testing  |     Focuses:
-------------------------------------------+-----------------------------
Changes (by desrosj):

 * keywords:  php73 needs-patch => php73 has-patch needs-testing


Comment:

 More details on my last comment. You can see these notices by going to any
 `wp-admin/edit.php` screen.

 Also, there is another notice triggered on the Add New Plugin page caused
 by `$version` being undefined.

 [attachment:"44416.3.2.diff"] fixes both of these.

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


More information about the wp-trac mailing list