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