-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add support for WordPress Multisite #101
base: develop
Are you sure you want to change the base?
Conversation
When I use: add_action('switch_blog', function () {
$this->setTablePrefix($this->db->prefix);
}); This only works partially. It works correctly in the model's
I can't find the place that could be causing generation of a double prefix after executing the I'll reset the entire instance: add_action('switch_blog', function () {
self::$instance = null;
}); This works correctly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @rafaucau
Thank you for your contribution!
I made 2 small feedbacks. Before validating the PR, I want to take the time to test and write some tests.
I hope to validate this RP in February for the 4.2.0
.
Co-authored-by: Dimitri BOUTEILLE <34821762+dimitriBouteille@users.noreply.github.com>
Resolves #100
Update table prefixResetDatabase
instance after blog switch