WordPress 7.1.2: critical core security fix. Update now, then check inactive themes and comments.

Details

Security tests

Disable plugin and theme editor

Turn off the WordPress plugin and theme file editor via wp-config or Security Ninja Pro Fixes.

The plugin and theme editors in wp-admin let Administrators edit code in the browser. That raises risk if an account is compromised, and makes accidental breakage easier.

Disable plugin & theme editor

Manual fix (Free)

  1. Open wp-config.php in the WordPress root (FTP or host file manager).
  2. Above /* That's all, stop editing! Happy blogging. */, add:
define( 'DISALLOW_FILE_EDIT', true );
  1. Save the file.
  2. Confirm Appearance → Theme File Editor and Plugins → Plugin File Editor are gone.

One-click fix (Pro)

  1. Go to Security Ninja → Fixes.
  2. Enable the option to disable the plugin and theme editor.
  3. Confirm the editors no longer appear in wp-admin.

Related: Fixes overview.

Still stuck? Get help or contact us.

Larger screenshot

Enlarged image