problem after switch_to_blog()
-
I executed a snippet in a multisite WP (from blog_id=2) with:
global $switched; //suppose this is the problem
switch_to_blog(1); //error!
Now the only way I have to access blog(2) is disabling WpCode. Even if I uninstall WpCode and reinstall, from the moment I enable the plugin I can not access blog(2). Tried to delete the entire snippet from the database (table wp_2_posts) but no luck.
How can I delete those statements so that I can reinstall WpCode? Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘problem after switch_to_blog()’ is closed to new replies.