[wpmu-trac] [WordPress MU Trac] #937: Plugin "Edit" button
WordPress MU Trac
wpmu-trac at lists.automattic.com
Wed Mar 25 22:35:26 GMT 2009
#937: Plugin "Edit" button
--------------------------+-------------------------------------------------
Reporter: ndrwld | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 2.7.1
Component: Optimisation | Version: 2.7.1
Severity: normal | Keywords: Plugin-edit-button
--------------------------+-------------------------------------------------
In Plugin manager both - Administrators and user, how has access to it can
see plugin edit button although plugin editor is disabled. I suggest to
add comment tag to hide this button.
In wp-admin\plugins.php - to comment Lines 298-299
{{{
#!python
/*Disable "Edit" button from Plugin Manager
if ( current_user_can('edit_plugins') && is_writable(WP_PLUGIN_DIR . '/' .
$plugin_file) ) $action_links[] = '<a href="plugin-
editor.php?file=' . $plugin_file . '" title="' . __('Open this file in the
Plugin Editor') . '" class="edit">' . __('Edit') . '</a>';*/
}}}
--
Ticket URL: <http://trac.mu.wordpress.org/ticket/937>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser
More information about the wpmu-trac
mailing list