refactor: remove unused WPVDB\WPVDB bootstrap class#12
Merged
Conversation
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Deletes the unused includes/class-wpvdb.php file containing the dead WPVDB\WPVDB bootstrap class. The active bootstrap path uses \WPVDB\Plugin::get_instance() which already registers the same hooks, and the removed file is never required or autoloaded (PSR-4 mapping would not resolve to this WordPress-style filename).
Changes:
- Remove
includes/class-wpvdb.phpentirely.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes
includes/class-wpvdb.php, which defined theWPVDB\WPVDBclass.Background
It's dead code. The active bootstrap in
wpvdb.phpuses\WPVDB\Plugin::get_instance(), andPluginalready registers the hooks this class duplicated (rest_api_init,wpvdb_process_embedding,wpvdb_process_embedding_batch,wpvdb_run_queue_now). Verified before removal:\WPVDB\WPVDBanywhere in the codebase (excluding vendor).required/included.WPVDB\toincludes/, soWPVDB\WPVDBwould resolve toincludes/WPVDB.php, not the WordPress-namedincludes/class-wpvdb.php.So nothing loads or calls it; removing it has no runtime effect.
Testing
Deletion-only change. No behavior to exercise; CI lint/test cover the rest.
🤖 Generated with Claude Code