$editor_disabled ? 'true' : 'false', 'DISALLOW_FILE_MODS' => $mods_disabled ? 'true' : 'false', ); if ( $mods_disabled ) { return static::pass( __( 'File modifications are disabled. The theme and plugin editors are not accessible, and file changes require FTP access.', '0-day-analytics' ), $details ); } if ( $editor_disabled ) { return static::pass( __( 'The built-in theme and plugin file editors are disabled. If someone gains access to your admin panel, they can\'t modify your code directly.', '0-day-analytics' ), $details ); } return static::warning( __( 'The built-in theme and plugin file editors are enabled. If a hacker gains admin access, they could inject malicious code directly into your site files.', '0-day-analytics' ), __( 'Add this line to your wp-config.php file before "That\'s all, stop editing!": define(\'DISALLOW_FILE_EDIT\', true);', '0-day-analytics' ), $details ); } } }