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

WordPress Trac noreply at wordpress.org
Sat Sep 26 22:06:49 UTC 2020


#51400: Undefined index during automatic plugin/theme updates
-----------------------------+------------------------------------
 Reporter:  afragen          |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Upgrade/Install  |    Version:  5.5
 Severity:  normal           |   Keywords:  has-patch dev-feedback
  Focuses:                   |
-----------------------------+------------------------------------
 When a site has only plugins or themes available for auto-updates the
 `WP_Automatic_Updater::after_plugin_theme_update( $update_results )` may
 have an undefined value in the parameter `$update_results`. This will
 result in a PHP Notice for an undefined index of either 'plugin' or
 'theme' in `wp-admin/includes/class-wp-automatic-updater` in the
 `auto_{plugin|theme}_update_send_email` filter hook.

 To fix this, the missing index simply needs to be set.

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


More information about the wp-trac mailing list