-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: plugin version after activation #2447
base: develop
Are you sure you want to change the base?
Conversation
WalkthroughThe changes in this pull request modify the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (3)includes/Install/Installer.php (3)
The change of visibility from public to private for the reverse withdrawal methods aligns with encapsulation principles, as these methods are only used internally during installation.
The version update is now properly conditioned to execute only during first installation, fixing the issue where the version was being updated on every activation. This change:
While the changes look correct, let's verify there are no regressions in the installation process. ✅ Verification successfulThe search results show that the version handling is consistent throughout the codebase. Let me verify the setup wizard and activation process to ensure complete installation integrity. Installation process integrity is maintained The verification shows that the installation process is properly maintained:
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify version handling in the codebase
# Look for other places that might depend on dokan_theme_version option
# Check for direct option access
rg "get_option\(\s*['\"]dokan_theme_version" -A 2
# Check for update_option calls
rg "update_option\(\s*['\"]dokan_theme_version" -A 2
# Check for version-dependent logic
rg "dokan_theme_version" -A 2
Length of output: 2119 Script: #!/bin/bash
# Check setup wizard and activation related code
# Look for dependencies on admin setup wizard flag and redirect transient
# Check setup wizard ready flag usage
rg "dokan_admin_setup_wizard_ready" -A 2
# Check redirect transient usage
rg "_dokan_setup_page_redirect" -A 2
# Check overall activation hooks
ast-grep --pattern 'register_activation_hook($$$)'
Length of output: 2244 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
All Submissions:
Changes proposed in this Pull Request:
Related Pull Request(s)
Closes
How to test the changes in this Pull Request:
Changelog entry
Title
Detailed Description of the pull request. What was previous behaviour
and what will be changed in this PR.
Before Changes
Describe the issue before changes with screenshots(s).
After Changes
Describe the issue after changes with screenshot(s).
Feature Video (optional)
Link of detailed video if this PR is for a feature.
PR Self Review Checklist:
FOR PR REVIEWER ONLY:
Summary by CodeRabbit