Opened 12 years ago
Closed 12 years ago
#29088 closed defect (bug) (fixed)
Plugin_Upgrader::deactivate_plugin_before_upgrade() is hooked to a filter, but doesn't always return a value
| Reported by: | jdgrimes | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.1 |
| Component: | Upgrade/Install | Version: | 2.8 |
| Severity: | normal | Keywords: | needs-docs |
| Cc: | Focuses: |
Description
Plugin_Upgrader::deactivate_plugin_before_upgrade() is hooked to the 'upgrader_pre_install' filter by Plugin_Upgrader::upgrade(), but it doesn't always return a value. This still works because the result of the filter is only checked with is_wp_error() (in WP_Upgrader::install_package()). However, it could certainly cause bugs for other functions hooked to that filter.
Attachments (1)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 30761: