Home › Forums › Community Support Forum › WordPress Plugins › Like Gate › Plugin adds backslashes to single quotes before shortcode
- This topic has 9 replies, 2 voices, and was last updated 11 years ago by Slavi Marinov.
-
AuthorPosts
-
April 26, 2013 at 7:37 pm #395dhewletteParticipant
I just installed this and really like the proposed features, but found that the plugin tries to escape all single quote marks before the shortcode occurs on a page.
After the shortcode the plugin doesn’t mess with anything–but every single quote mark (‘) before the shortcode had a slash + space (\ ) added just before it.
This makes the plugin unusable, as it completely messes up my theme (none of the classes are recognized with added slashes).
I installed from wordpress just hours ago. Can you confirm this bug?
Thanks.
April 27, 2013 at 12:11 pm #396Slavi MarinovKeymasterHi,
Can you paste your the shortcode and the page that you’re using and like?
The slash before the single quotes could be done by WordPress or a php setting (magic quotes).
April 27, 2013 at 1:58 pm #397dhewletteParticipantThanks for the quick response. Here is the shortcode I’m using:
`
[like-gate]
Thanks for being a friend! Here’s a coupon code you can use next time you buy to receive a $1 off.
Code: X7B4
[/like-gate]
`And here is part of the source of the page I’m using it on:
Without the shortcode:
``
With the shortcode:
`
`
April 27, 2013 at 2:00 pm #398dhewletteParticipantSorry the CSS didn’t come through. Here is a jsfiddle with it:
Before shortcode:
http://jsfiddle.net/44LrG/Using shortcode:
http://jsfiddle.net/R8FSD/Thanks.
April 27, 2013 at 8:31 pm #399Slavi MarinovKeymasterHi again,
Can you create a file called abc.php with the following contents and upload it into your htdocs or public_html folder?
<?php
phpinfo();
?>
then search for: “magic_quotes” of any of the following values is On contact your hosting to turn them off.
- magic_quotes_gpc
- magic_quotes_runtime
Note: Make sure you delete abc.php so hackers don’t see your hosting’s settings.
April 28, 2013 at 1:31 pm #400dhewletteParticipantI checked and all of the magic quotes settings are set to off, both local and global. Here are the ones that showed up in the php info file:
magic_quotes_gpc
magic_quotes_runtime
magic_quotes_sybaseApril 30, 2013 at 2:29 pm #413Slavi MarinovKeymasterHi,
I am assuming that you’re using the free (lite) version.
I made a fix which you can download from the link below.https://dl.dropboxusercontent.com/u/100016659/tmp/like-gate.zip
Can you check if it working for you?April 30, 2013 at 6:24 pm #414dhewletteParticipantThat seems to have done the trick, thanks!
What changed?
Also, what is the best way to center the text? It appears the whole container is very wide, yet the basic text only fills a small part of it and floats left.
Thanks.
May 1, 2013 at 8:26 pm #446Slavi MarinovKeymasterI did a fixes that removed the slashes.
Can you create a screenshot and send me the link?December 11, 2013 at 8:11 pm #1516Slavi MarinovKeymasterPlanning to push a new release tomorrow or tomorrow
-
AuthorPosts
- You must be logged in to reply to this topic.