#51400 closed defect (bug) (fixed)
Undefined index during automatic plugin/theme updates
Reported by: | afragen | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.5.2 | Priority: | normal |
Severity: | normal | Version: | 5.5 |
Component: | Upgrade/Install | Keywords: | has-patch |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (8)
This ticket was mentioned in Slack in #core by afragen. View the logs.
4 years ago
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
4 years ago
Note: See
TracTickets for help on using
tickets.
Good catch @afragen
Indeed, this is a real issue. The patch looks good to me.
Let's move this to 5.5.2.