Posts tagged with AddToAny

AddToAny WordPress Plugin Fix for the Google +1 Button

June 23rd, 2011

I just added the AddToAny links on my blog but could see that it gave a parsing error when I tried to use the Google +1 button.

Having looked at the code it’s easy to see the error, in line 371 the code says this:

'https://plusone.google.com/u/0/_/%2B1/button#url=' . $linkurl_enc . '&size=medium&count='

Whereas the ampersands should be encoded as & (as they are in all the other services), just change the line to read this and all is well.

'https://plusone.google.com/u/0/_/%2B1/button#url=' . $linkurl_enc . '&size=medium&count='

Update – I entered the bug onto the forum and the developer responded within a few hours saying it will be fixed for the next release. It’s nice when a developer is so responsive.

Here’s the forum thread.

Google BookmarksEvernoteGoogle GmailHotmailWordPressLinkedInFacebookDeliciousShare

Switch to our mobile site