refactor(search): split 590-line search class into search + handler
Extract AJAX handler, generation workflow, pending retry logic, and placeholder creation into PSA_Search_Handler (211 lines). Main class retains search logic, caching, REST endpoint, and shortcode rendering (300 lines). Backward-compatible proxies preserved. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -23,6 +23,7 @@ define( 'PSA_PLUGIN_FILE', __FILE__ );
|
||||
require_once PSA_PLUGIN_DIR . 'includes/class-psa-config.php';
|
||||
require_once PSA_PLUGIN_DIR . 'includes/class-psa-encryption.php';
|
||||
require_once PSA_PLUGIN_DIR . 'includes/class-psa-post-type.php';
|
||||
require_once PSA_PLUGIN_DIR . 'includes/class-psa-search-handler.php';
|
||||
require_once PSA_PLUGIN_DIR . 'includes/class-psa-search.php';
|
||||
require_once PSA_PLUGIN_DIR . 'includes/class-psa-cost-tracker.php';
|
||||
require_once PSA_PLUGIN_DIR . 'includes/class-psa-openrouter.php';
|
||||
|
||||
Reference in New Issue
Block a user