Opened 9 years ago
Last modified 4 months ago
#38112 assigned defect (bug)
Deleting an Active Plugin via Bulk Actions Fails Silently
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Future Release | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Plugins | Keywords: | has-patch has-test-info dev-feedback |
| Focuses: | Cc: |
Description
With the introduction of shinier updates in 4.6, it appears that the error messaging around deleting an activated plugin wasn't ported into the new system properly.
To reproduce:
- On Plugins Screen, select an activated plugin.
- From "Bulk Actions" select "Delete"
- Click Apply
Result:
Nothing happens. Silent failure (to delete).
Expected Result:
Error message explaining that you can't delete activated plugins.
In one case, I actually saw the expected error message after refreshing the plugins page, but I haven't been able to replicate that since.
Attachments (2)
Change History (28)
#2
@
9 years ago
- Keywords has-patch needs-testing added; needs-patch removed
This really must have slipped under the radar somehow. There was no JS template for bulk deletions or anything. Luckily, it is easy to fix.
38112.diff addresses the issue. @mrwweb Can you test this on your site to see if it works for you as well?
#3
@
9 years ago
Here's a screenshot after attempting to delete an inactive and an active plugin:
Now I've alse tested on multisite where it doesn't work at all :(
Theme deletion error message is undefined but the theme is deleted anyway after the second attempt:
Plugin deletion error messages work, but somehow there's also an inline error message:
#4
@
9 years ago
- Keywords shiny-updates added
- Owner set to swissspidy
- Status changed from new to assigned
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
9 years ago
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
9 years ago
#7
@
9 years ago
- Keywords needs-patch added; has-patch removed
- Milestone changed from 4.7 to Future Release
I couldn't reproduce the undefined bug and I don't know why deleting a network enabled theme is even possible.
38112.2.diff changes the selector in wp.updates.deletePluginError to show the bulk admin notice and the inline notice. This makes the bug at least more obvious for both screens during testing.
Unfortunately, I haven't found a good solution yet to hide inline admin notices during a bulk action. The bulk handler would need to pass custom success & error callbacks instead of hooking into the triggers inside wp.updates.deletePluginError() et al. Ideally, the inline notices should not be added in wp.updates.deletePluginError() directly, but also via the hook.
This ticket was mentioned in Slack in #feature-shinyupdates by swissspidy. View the logs.
9 years ago
This ticket was mentioned in Slack in #core by scottbuscemi. View the logs.
4 years ago
#16
@
4 months ago
@SergeyBiryukov @swissspidy Is this 38112.2.diff patch save to test with WordPress 6.8.2 or We are expecting new patch
This ticket was mentioned in Slack in #core-test by sirlouen. View the logs.
4 months ago
#18
@
4 months ago
- Keywords changes-requested added; needs-testing shiny-updates needs-refresh removed
Test Report
Description
This report validates whether the indicated patch works as expected.
Patch tested: https://core.trac.wordpress.org/attachment/ticket/38112/38112.2.diff
Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.29
- Server: nginx/1.29.0
- Database: mysqli (Server: 8.0.43 / Client: mysqlnd 8.2.29)
- Browser: Chrome 138.0.0.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.3
Actual Results
- 🟡 The primary issue has been resolved by the patch; however, an empty notice now appears at the top of the page.
Additional Notes
- Although the issue is resolved with the patch, I can see there is a blank empty notice on top:
Supplemental Artifacts
This ticket was mentioned in PR #9419 on WordPress/wordpress-develop by @nikunj8866.
4 months ago
#19
Trac ticket: https://core.trac.wordpress.org/ticket/38112
#20
@
4 months ago
I traced this regression back to the introduction of Shiny Updates in WordPress 4.6.
Specifically, commit:
https://github.com/WordPress/wordpress-develop/commit/af6b1a53880206cc18e850709d3d1ccbf1d5375b#diff-9a2e3d033a5adf8f4fc1c7e757771440e5645dee7f34a248e23a7cb8dc18e6c1
(July 27 2016) Modified the plugin deletion/update flow and capability checks in wp_ajax_delete_plugin() and the related JS handling in updates.js.
#21
@
4 months ago
- Keywords needs-testing needs-test-info added; changes-requested removed
@ankitkumarshah I've refreshed the code. Could you please re-test it?
#22
@
4 months ago
- Keywords has-test-info added; needs-test-info removed
@nikunj8866 I think you wanted to set has-test-info right?
#23
@
4 months ago
- Keywords needs-test-info added; has-test-info removed
@SirLouen, I've fixed the empty notice issue in the refresh code, so I'd like to re-test it.
#24
@
4 months ago
- Keywords has-test-info added; needs-testing needs-test-info removed
Test Report
Description
This report validates whether the indicated patch works as expected.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/9419
Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.29
- Server: nginx/1.29.0
- Database: mysqli (Server: 8.0.43 / Client: mysqlnd 8.2.29)
- Browser: Chrome 138.0.0.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.3
Actual Results
- ✅ Issue resolved with the patch.
Supplemental Artifacts
#25
@
4 months ago
Deleting an Active Plugin via Bulk Actions Fails Silently
Description
With the introduction of shinier updates in 4.6, it appears that the error messaging around deleting an activated plugin wasn't ported into the new system properly.
To reproduce:
On Plugins Screen, select an activated plugin.
From "Bulk Actions" select "Delete"
Click Apply
Result:
Nothing happens. Silent failure (to delete).
Expected Result:
Error message explaining that you can't delete activated plugins.
In one case, I actually saw the expected error message after refreshing the plugins page, but I haven't been able to replicate that since.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/9419/files
Environment
- WordPress: 6.8.3-alpha-60531
- PHP: 8.3.14
- Server: Apache/2.4.62 (Unix) mod_wsgi/5.0.1 Python/3.12 mod_fastcgi/mod_fastcgi-SNAP-0910052141 OpenSSL/1.1.1w
- Database: mysqli (Server: 5.7.44 / Client: mysqlnd 8.3.14)
- Browser: Chrome 139.0.0.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.3
- MU Plugins: None activated
- Plugins:
- Test Reports 1.2.0
- WordPress Beta Tester 3.6.4
Actual Results
- ✅ Issue resolved with patch.






Thanks for your report. I can confirm the issue.