Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion includes/abilities/security/uploads-scan.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,12 @@ function agentic_admin_execute_uploads_scan( array $input = array() ): array {
// 3. Scan .well-known directory (recursive).
// Attackers hide backdoors in .well-known/ because admins rarely check it
// and some security scanners skip dotfiles/dotdirs.
$well_known_dir = ABSPATH . '.well-known';
// .well-known lives at the site root (document root), which is get_home_path()
// and can differ from ABSPATH on subdirectory installs.
if ( ! function_exists( 'get_home_path' ) ) {
require_once ABSPATH . 'wp-admin/includes/file.php';
}
$well_known_dir = trailingslashit( get_home_path() ) . '.well-known';
if ( is_dir( $well_known_dir ) ) {
$areas_scanned[] = '.well-known';
agentic_admin_scan_directory_for_dangerous_files(
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/services/vector-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { createLogger } from '../utils/logger';
const log = createLogger( 'VectorStore' );

const TRANSFORMERS_CDN =
'https://cdn.jsdelivr.net/npm/@huggingface/transformers@3';
'https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.8.1';
const MODEL_NAME = 'Xenova/all-MiniLM-L6-v2';
const DB_NAME = 'wp-agentic-rag-db';
const DB_VERSION = 1;
Expand Down
Loading