[wp-trac] [WordPress Trac] #51818: Invalid value in foreach in debug_data()

WordPress Trac noreply at wordpress.org
Sat Nov 21 14:37:59 UTC 2020


#51818: Invalid value in foreach in debug_data()
---------------------------+-----------------------------
 Reporter:  paulschreiber  |       Owner:  SergeyBiryukov
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  5.7
Component:  Site Health    |     Version:  5.2
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:
---------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49676" 49676]:
 {{{
 #!CommitTicketReference repository="" revision="49676"
 Site Health: Check if `$core_updates` is an array before iterating on it.

 This avoids a PHP warning if `get_core_updates()` returns `false`.

 Props paulschreiber.
 Fixes #51818.
 }}}

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


More information about the wp-trac mailing list