Bug when using multisite
-
The plugin uses switch_to_blog() multiple times without restore_current_blog(). Instead the plugin runs extra switch_to_blog() functions to switch back to the previous site.
Instead of currently restoring the original multisite blog, this method pushes another blog_id onto the $GLOBALS[‘_wp_switched_stack’] array.
This global variable is inspected by wordpress core and other plugins to determine if the current blog_id is the ‘original’ blog. If the _wp_switched_stack array is not empty then it is assumed the blog is in a switched state.
This bug can be fixed by opening intuitive-custom-post-order.php and replacing all instances of switch_to_blog($current) with restore_current_blog();
The topic ‘Bug when using multisite’ is closed to new replies.