I'm developing a theme that uses a Twitter Tweets custom widget (Not coded by me). There are several widget areas within the theme and if I try and include the Twitter widget in say the sidebar and the footer at the same time I get this error;
Fatal error: Cannot redeclare echo_tweets_js() (previously declared in..... on line.....
This is the section of offending code;
function echo_tweets_js() {
global $pt_twitter_username, $pt_twitter_postcount;
echo pt_twitter_js($pt_twitter_username, $pt_twitter_postcount);
}
add_action('wp_footer', 'echo_tweets_js', 9999);
Is there a way I can make it work if a user decides they want it in 2 places at the same time?
