[wp-trac] [WordPress Trac] #50448: Add tolerance to plugin and theme auto-update failure emails

WordPress Trac noreply at wordpress.org
Tue Jul 7 20:36:56 UTC 2020


#50448: Add tolerance to plugin and theme auto-update failure emails
--------------------------------------+----------------------
 Reporter:  desrosj                   |       Owner:  desrosj
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.5
Component:  Administration            |     Version:  trunk
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch needs-dev-note  |     Focuses:
--------------------------------------+----------------------

Comment (by desrosj):

 In [changeset:"48401" 48401]:
 {{{
 #!CommitTicketReference repository="" revision="48401"
 Administration: Fix failing tests as a result of [48397].

 Because of changes to how PHP handles arrays used in `foreach()` loops in
 PHP >= 7.0, [48397] resulted in a failing test for PHP 5.6.

 This calls `reset()` after using the `$results` array in the `foreach()`
 to ensure the array is treated the same and as expected.

 Props azaozz, desrosj, SergeyBiryukov, xknown.
 See #50448.
 }}}

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


More information about the wp-trac mailing list