Title: plugin and theme editor re-enabled after removing plugin
Last modified: August 31, 2016

---

# plugin and theme editor re-enabled after removing plugin

 *  [7thcircle](https://wordpress.org/support/users/7thcircle/)
 * (@7thcircle)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-and-theme-editor-re-enabled-after-removing-plugin/)
 * I have `define('DISALLOW_FILE_EDIT', true);` in my wp-config.php file, but after
   installing the plugin it no longer disables the editor. If I disable and remove
   the plugin it also does not disable the editor.
 * [https://wordpress.org/plugins/user-role-editor/](https://wordpress.org/plugins/user-role-editor/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-and-theme-editor-re-enabled-after-removing-plugin/#post-7400990)
 * Try to deactivate all plugins, activate WP standard 2016 theme and re-check. 
   Check ‘wp-content/mu-plugins’ folder for unknown files or code. I’m sure – the
   issue is not related to User Role Editor plugin.
 *  Thread Starter [7thcircle](https://wordpress.org/support/users/7thcircle/)
 * (@7thcircle)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-and-theme-editor-re-enabled-after-removing-plugin/#post-7401006)
 * I disabled all plugins and switched to twentytwelve with no change.
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-and-theme-editor-re-enabled-after-removing-plugin/#post-7401007)
 * To be 100% sure I added `define('DISALLOW_FILE_EDIT', true);` to one of my test
   sites with active User Role Editor. Even ‘administrator’ does not see ‘Editor’
   menu item under ‘Appearance’ and ‘Plugins’ after that.
    URE itself does not change
   access to the file editors.
 * Check your site folders for external files and/or modified files from WordPress
   core. May be some code injected to the ‘map_meta_cap’ filter.
 *  Thread Starter [7thcircle](https://wordpress.org/support/users/7thcircle/)
 * (@7thcircle)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-and-theme-editor-re-enabled-after-removing-plugin/#post-7401017)
 * Even setting define(‘DISALLOW_FILE_MODS’, true); does not disable the editor 
   anymore.
 * The only changed files are cache files and wp-config
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-and-theme-editor-re-enabled-after-removing-plugin/#post-7401021)
 * You may send site files copy (without ‘uploads’ folder) to support [at-sign] 
   role-editor.com. I will look what’s going on.
 *  Thread Starter [7thcircle](https://wordpress.org/support/users/7thcircle/)
 * (@7thcircle)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-and-theme-editor-re-enabled-after-removing-plugin/#post-7401097)
 * Which files do you need. I can send them today.
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-and-theme-editor-re-enabled-after-removing-plugin/#post-7401111)
 * I mean a full copy of your site WordPress installation directory without ‘wp-
   content/upload’ folder. Remove real passwords from wp-config.php
 *  Thread Starter [7thcircle](https://wordpress.org/support/users/7thcircle/)
 * (@7thcircle)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-and-theme-editor-re-enabled-after-removing-plugin/#post-7401116)
 * I have emailed the files
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-and-theme-editor-re-enabled-after-removing-plugin/#post-7401118)
 * Got it.
    Compared your WP with WP 4.5.2 – clear. Scanned all plugins/theme code
   for unexpected usage of ‘map_meta_cap’ filter – clear. Installed WordPress using
   your files. Activated all plugins, including ‘User Role Editor’ one. ‘Editor’
   menu is not available.
 * If you could repeat the issue at some test copy and provide it to me with the
   database together, then I may debug WordPress code to understand what’s really
   happening there… Otherwise I don’t know how I can help.
 *  Thread Starter [7thcircle](https://wordpress.org/support/users/7thcircle/)
 * (@7thcircle)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-and-theme-editor-re-enabled-after-removing-plugin/#post-7401120)
 * The issue does not exist on my dev server, it is only on this install

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘plugin and theme editor re-enabled after removing plugin’ is closed to
new replies.

 * ![](https://ps.w.org/user-role-editor/assets/icon-256x256.jpg?rev=1020390)
 * [User Role Editor](https://wordpress.org/plugins/user-role-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-role-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-role-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/user-role-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-role-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-role-editor/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [7thcircle](https://wordpress.org/support/users/7thcircle/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-and-theme-editor-re-enabled-after-removing-plugin/#post-7401120)
 * Status: not resolved