[wp-trac] [WordPress Trac] #51400: Undefined index during automatic plugin/theme updates

WordPress Trac noreply at wordpress.org
Thu Oct 15 23:25:34 UTC 2020


#51400: Undefined index during automatic plugin/theme updates
-----------------------------+-----------------------------
 Reporter:  afragen          |       Owner:  SergeyBiryukov
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  5.5.2
Component:  Upgrade/Install  |     Version:  5.5
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-patch        |     Focuses:
-----------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49166" 49166]:
 {{{
 #!CommitTicketReference repository="" revision="49166"
 Upgrade/Install: Check if plugin or theme update results are available
 before applying the notification filters.

 This avoids a PHP notice for an undefined index of either `plugin` or
 `theme` in the `auto_{plugin|theme}_update_send_email` filter hook.

 Props afragen, audrasjb.
 Fixes #51400.
 }}}

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


More information about the wp-trac mailing list