refactor(filter): split 536-line content filter into orchestrator + rules
Extract keyword data, domain blocklists, and rule evaluation into Peptide_News_Content_Filter_Rules (195 lines). Main class retains orchestration, LLM classification, and stats (234 lines). Backward- compatible proxies preserved on Peptide_News_Content_Filter. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -233,6 +233,7 @@ if ( ! class_exists( 'WP_Error' ) ) {
|
||||
|
||||
// ── Load plugin classes for testing ───────────────────────────────────
|
||||
// Content filter can be loaded standalone (no WordPress runtime needed).
|
||||
require_once PEPTIDE_NEWS_PLUGIN_DIR . 'includes/class-peptide-news-content-filter-rules.php';
|
||||
require_once PEPTIDE_NEWS_PLUGIN_DIR . 'includes/class-peptide-news-content-filter.php';
|
||||
|
||||
// LLM subsystem: client and prompt-builder must load before the orchestrator.
|
||||
|
||||
Reference in New Issue
Block a user