This issue is somehow related to #46, I have multisite (network) WP instalation, and wp-polls is networkwide activated. In activation hook there is loop over all sites and polls_activate() is called on each blog but $wpdb tables names are not updated so it connects to same tables over and over again. I think it is a bug because tables should be created in each blog (wp_, wp_2_, etc) but having all polls in one blog and having them accessible in all blogs was desired by me (it isn't a bug, it's a feature!), so I've added this config const POLLS_MOTHER_SITE (kill me for this name :P ) so when it is defined blog switches are ignored and all DB access is to one selected blog.
This issue is somehow related to #46, I have multisite (network) WP instalation, and wp-polls is networkwide activated. In activation hook there is loop over all sites and
polls_activate()
is called on each blog but$wpdb
tables names are not updated so it connects to same tables over and over again. I think it is a bug because tables should be created in each blog (wp_
,wp_2_
, etc) but having all polls in one blog and having them accessible in all blogs was desired by me (it isn't a bug, it's a feature!), so I've added this config constPOLLS_MOTHER_SITE
(kill me for this name :P ) so when it is defined blog switches are ignored and all DB access is to one selected blog.