<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Getting Rid of Unwanted Backslashes in WordPress Form Input	</title>
	<atom:link href="https://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/feed/" rel="self" type="application/rss+xml" />
	<link>https://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/</link>
	<description>I turn code into captivating user experiences for the web</description>
	<lastBuildDate>Sun, 10 Jul 2022 17:31:59 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.4</generator>
	<item>
		<title>
		By: Kieran Mitchell		</title>
		<link>https://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/#comment-70</link>

		<dc:creator><![CDATA[Kieran Mitchell]]></dc:creator>
		<pubDate>Wed, 09 Sep 2015 12:06:04 +0000</pubDate>
		<guid isPermaLink="false">http://fearlessflyer.com/?p=700#comment-70</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/#comment-63&quot;&gt;JD&lt;/a&gt;.

Been trying to disable magic quotes for nearly 3 days straight. Until I saw this comment, nothing had worked. Thanks!!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/#comment-63">JD</a>.</p>
<p>Been trying to disable magic quotes for nearly 3 days straight. Until I saw this comment, nothing had worked. Thanks!!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: bryceadams		</title>
		<link>https://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/#comment-69</link>

		<dc:creator><![CDATA[bryceadams]]></dc:creator>
		<pubDate>Mon, 11 Aug 2014 11:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://fearlessflyer.com/?p=700#comment-69</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/#comment-65&quot;&gt;Vaibhav Bhanushali&lt;/a&gt;.

You might as well just do it without any conditional.
$_POST = array_map( &#039;stripslashes_deep&#039;, $_POST );
$_GET = array_map( &#039;stripslashes_deep&#039;, $_GET );
$_COOKIE = array_map( &#039;stripslashes_deep&#039;, $_COOKIE );
$_REQUEST = array_map( &#039;stripslashes_deep&#039;, $_REQUEST );]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/#comment-65">Vaibhav Bhanushali</a>.</p>
<p>You might as well just do it without any conditional.<br />
$_POST = array_map( &#8216;stripslashes_deep&#8217;, $_POST );<br />
$_GET = array_map( &#8216;stripslashes_deep&#8217;, $_GET );<br />
$_COOKIE = array_map( &#8216;stripslashes_deep&#8217;, $_COOKIE );<br />
$_REQUEST = array_map( &#8216;stripslashes_deep&#8217;, $_REQUEST );</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: cracki		</title>
		<link>https://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/#comment-68</link>

		<dc:creator><![CDATA[cracki]]></dc:creator>
		<pubDate>Thu, 12 Dec 2013 10:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://fearlessflyer.com/?p=700#comment-68</guid>

					<description><![CDATA[Thank You]]></description>
			<content:encoded><![CDATA[<p>Thank You</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Stripslashes in textarea in a Wordpress plugin option &#124; PinkishHue.com		</title>
		<link>https://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/#comment-67</link>

		<dc:creator><![CDATA[Stripslashes in textarea in a Wordpress plugin option &#124; PinkishHue.com]]></dc:creator>
		<pubDate>Mon, 26 Aug 2013 12:20:32 +0000</pubDate>
		<guid isPermaLink="false">http://fearlessflyer.com/?p=700#comment-67</guid>

					<description><![CDATA[[&#8230;] &#8220;Getting rid of unwanted backslashes in WordPress form input&#8220; from michaelsoriano.com [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] &#8220;Getting rid of unwanted backslashes in WordPress form input&#8220; from michaelsoriano.com [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: wp automatically escaping global vars! : Willing wheels		</title>
		<link>https://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/#comment-66</link>

		<dc:creator><![CDATA[wp automatically escaping global vars! : Willing wheels]]></dc:creator>
		<pubDate>Mon, 25 Mar 2013 04:09:46 +0000</pubDate>
		<guid isPermaLink="false">http://fearlessflyer.com/?p=700#comment-66</guid>

					<description><![CDATA[[...] http://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/ [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] <a href="http://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/" rel="ugc">http://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/</a> [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vaibhav Bhanushali		</title>
		<link>https://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/#comment-65</link>

		<dc:creator><![CDATA[Vaibhav Bhanushali]]></dc:creator>
		<pubDate>Tue, 22 Jan 2013 08:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://fearlessflyer.com/?p=700#comment-65</guid>

					<description><![CDATA[i ran this code to make it work
if ( get_magic_quotes_gpc() ) {
    $_POST      = array_map( &#039;stripslashes_deep&#039;, $_POST );
    $_GET       = array_map( &#039;stripslashes_deep&#039;, $_GET );
    $_COOKIE    = array_map( &#039;stripslashes_deep&#039;, $_COOKIE );
    $_REQUEST   = array_map( &#039;stripslashes_deep&#039;, $_REQUEST );
} else {
    $_POST      = array_map( &#039;stripslashes_deep&#039;, $_POST );
    $_GET       = array_map( &#039;stripslashes_deep&#039;, $_GET );
    $_COOKIE    = array_map( &#039;stripslashes_deep&#039;, $_COOKIE );
    $_REQUEST   = array_map( &#039;stripslashes_deep&#039;, $_REQUEST );
}]]></description>
			<content:encoded><![CDATA[<p>i ran this code to make it work<br />
if ( get_magic_quotes_gpc() ) {<br />
    $_POST      = array_map( &#8216;stripslashes_deep&#8217;, $_POST );<br />
    $_GET       = array_map( &#8216;stripslashes_deep&#8217;, $_GET );<br />
    $_COOKIE    = array_map( &#8216;stripslashes_deep&#8217;, $_COOKIE );<br />
    $_REQUEST   = array_map( &#8216;stripslashes_deep&#8217;, $_REQUEST );<br />
} else {<br />
    $_POST      = array_map( &#8216;stripslashes_deep&#8217;, $_POST );<br />
    $_GET       = array_map( &#8216;stripslashes_deep&#8217;, $_GET );<br />
    $_COOKIE    = array_map( &#8216;stripslashes_deep&#8217;, $_COOKIE );<br />
    $_REQUEST   = array_map( &#8216;stripslashes_deep&#8217;, $_REQUEST );<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Christoffer Riess		</title>
		<link>https://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/#comment-64</link>

		<dc:creator><![CDATA[Christoffer Riess]]></dc:creator>
		<pubDate>Fri, 18 Jan 2013 14:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://fearlessflyer.com/?p=700#comment-64</guid>

					<description><![CDATA[Thank you!.
I just had into my web server
under &quot;get_magic_quotes_gpc&quot; it should be on
when I install WordPress. but apparently off when I use WordPress.
now it works again without problem!]]></description>
			<content:encoded><![CDATA[<p>Thank you!.<br />
I just had into my web server<br />
under &#8220;get_magic_quotes_gpc&#8221; it should be on<br />
when I install WordPress. but apparently off when I use WordPress.<br />
now it works again without problem!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JD		</title>
		<link>https://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/#comment-63</link>

		<dc:creator><![CDATA[JD]]></dc:creator>
		<pubDate>Tue, 18 Sep 2012 16:28:33 +0000</pubDate>
		<guid isPermaLink="false">http://fearlessflyer.com/?p=700#comment-63</guid>

					<description><![CDATA[Thank you so much for posting this!!
For anyone that is having problems, it is probably because `if ( get_magic_quotes_gpc()  )` is evaluating to FALSE for some reason on certain servers, even though WordPress is turning magic_quotes on. It may work for you if you just leave out the if statement. But if you do that (like I had to), you will need to remove that code when WordPress eventually get&#039;s this right and reforms their use of magic_quotes, or it will strip out slashes that are supposed to be their, like in links, etc.
Hope that helps somebody.]]></description>
			<content:encoded><![CDATA[<p>Thank you so much for posting this!!<br />
For anyone that is having problems, it is probably because `if ( get_magic_quotes_gpc()  )` is evaluating to FALSE for some reason on certain servers, even though WordPress is turning magic_quotes on. It may work for you if you just leave out the if statement. But if you do that (like I had to), you will need to remove that code when WordPress eventually get&#8217;s this right and reforms their use of magic_quotes, or it will strip out slashes that are supposed to be their, like in links, etc.<br />
Hope that helps somebody.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Berghain Nightclub		</title>
		<link>https://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/#comment-62</link>

		<dc:creator><![CDATA[Berghain Nightclub]]></dc:creator>
		<pubDate>Sat, 18 Aug 2012 19:51:30 +0000</pubDate>
		<guid isPermaLink="false">http://fearlessflyer.com/?p=700#comment-62</guid>

					<description><![CDATA[Hi, I know this is an old post, but I&#039;d just like to thank you for posting this up - I was pulling my hair out when this problem occured on my site (especially because magic quotes was off), but adding the above code solved the problem! Cheers!]]></description>
			<content:encoded><![CDATA[<p>Hi, I know this is an old post, but I&#8217;d just like to thank you for posting this up &#8211; I was pulling my hair out when this problem occured on my site (especially because magic quotes was off), but adding the above code solved the problem! Cheers!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dave Wright		</title>
		<link>https://michaelsoriano.com/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/#comment-61</link>

		<dc:creator><![CDATA[Dave Wright]]></dc:creator>
		<pubDate>Wed, 25 Apr 2012 17:23:48 +0000</pubDate>
		<guid isPermaLink="false">http://fearlessflyer.com/?p=700#comment-61</guid>

					<description><![CDATA[The wordpress shopp plugin seems to have a problem including these rogue slashes in notification emails to customers. Your snippet cleared them up. Thanks!]]></description>
			<content:encoded><![CDATA[<p>The wordpress shopp plugin seems to have a problem including these rogue slashes in notification emails to customers. Your snippet cleared them up. Thanks!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
