[wp-trac] [WordPress Trac] #29772: wp-admin/plugins.php should not load plugins so it can be used to disable broke activated plugins
WordPress Trac
noreply at wordpress.org
Sun Sep 28 05:26:55 UTC 2014
#29772: wp-admin/plugins.php should not load plugins so it can be used to disable
broke activated plugins
-------------------------+-----------------------------
Reporter: aubreypwd | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
When I create a plugin that essentially has bad PHP I get an error on the
site as expected, for both the site and `/wp-admin`. I think `wp-
admin/plugins.php` should always load up without including plugins, so if
there's a broke one, it can be de-activated by knowing you can navigate to
`example.com/wp-admin/plugins.php` safely and deactivate the plugin.
**What I Tested**
Created this great plugin and activate it:
{{{
<?php
/**
* Plugin Name: Break Things
* Plugin URI:
* Description: Breaks things.
* Version:
* Author:
* Author URI:
* License: GPL2
*/
this(should) break > right?
?>
}}}
Now try and de-activate the plugin via `/wp-admin`.
----
Broke plugins shouldn't ever get to the activated state this way, but if a
plugin is updated and has bad code, this would prove useful.
----
** How this would be better **
[[Image(https://cldup.com/onlBV3qFWA.gif)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29772>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list