make_result( array( 'id' => 'file_editor_enabled', 'title' => __( 'WordPress file editor is enabled', 'aipatch-security-scanner' ), 'description' => __( 'The built-in plugin and theme editor is accessible from the admin panel.', 'aipatch-security-scanner' ), 'severity' => 'high', 'confidence' => 'high', 'category' => 'configuration', 'why_it_matters' => __( 'If an attacker gains admin access, they can inject malicious code directly through the file editor.', 'aipatch-security-scanner' ), 'recommendation' => __( 'Add this line to your wp-config.php: define( \'DISALLOW_FILE_EDIT\', true );', 'aipatch-security-scanner' ), 'dismissible' => true, 'evidence' => 'DISALLOW_FILE_EDIT constant not defined or false', ) ), ); } }