[wp-trac] [WordPress Trac] #11306: Option to disable theme/plugin editor

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 2 17:39:47 UTC 2009


#11306: Option to disable theme/plugin editor
-----------------------------+----------------------------------------------
 Reporter:  kchrist          |       Owner:             
     Type:  feature request  |      Status:  new        
 Priority:  normal           |   Milestone:  3.0        
Component:  General          |     Version:             
 Severity:  normal           |    Keywords:  needs-patch
-----------------------------+----------------------------------------------

Comment(by nacin):

 First take: I would suggest that you simply take a user's edit_plugins and
 edit_themes capabilities. Since you don't want it in a plugin, you could
 do it via your theme's functions.php or mu-plugins. Or you can hard-code
 $wp_user_roles.

 Assuming none of that suits you, I suppose a WP_CODE_EDITOR constant check
 on theme-editor.php and plugins-editor.php couldn't hurt. You'd still need
 to restrict the capabilities via a plugin, however, that way the user
 doesn't see any relevant navigation and such.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11306#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list