<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SEO Tools Of The Trade &#187; Adsense Text Widget Fix</title>
	<atom:link href="http://www.zomoca.com/category/adsense-text-widget-fix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zomoca.com</link>
	<description>Internet Marketing Tools and Tips For Maximizing Your Online Income</description>
	<lastBuildDate>Fri, 18 Jun 2010 07:29:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WordPress Adsense Text Widget Fix</title>
		<link>http://www.zomoca.com/2008/06/30/wordpress-adsense-text-widget-fix/</link>
		<comments>http://www.zomoca.com/2008/06/30/wordpress-adsense-text-widget-fix/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 19:44:11 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Adsense Text Widget Fix]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.zomoca.com/2008/06/30/wordpress-adsense-text-widget-fix/</guid>
		<description><![CDATA[A lot of WP themes are now &#8220;widget-ized.&#8221; This makes it very easy to customize the navigation areas that normally house components such as Categories, Meta, Archives, Search, Calendar, etc. When a theme is widgetized, you can simple drag and drop the widgets into the widget editor without having to tweak the theme code directly. [...]]]></description>
			<content:encoded><![CDATA[<p>A lot of WP themes are now &#8220;widget-ized.&#8221; This makes it very easy to customize the navigation areas that normally house components such as Categories, Meta, Archives, Search, Calendar, etc.</p>
<p>When a theme is widgetized, you can simple drag and drop the widgets into the widget editor without having to tweak the theme code directly.</p>
<p>However, one problem is adding Adsense code to a Text Widget.  You want to do this because typically you want to a 120&#215;600 tower adsense in that narrow navigation area in the left or right nav bar.</p>
<p>The standard Text Widget, though, strips out the script code of the Adsense block.  So to fix this you need to tweak the widget.php code, which you can find in wp-includes directory.</p>
<p>Change this line:</p>
<p>if ( current_user_can(&#8216;unfiltered_html&#8217;) )<br />
				$text = stripslashes( $widget_text['text'] );<br />
			else<br />
				$text = stripslashes(wp_filter_post_kses( $widget_text['text']</p>
<p>To this line:</p>
<p>if ( current_user_can(&#8216;edit_themes&#8217;) )<br />
				$text = stripslashes( $widget_text['text'] );<br />
			else<br />
				$text = stripslashes(wp_filter_post_kses( $widget_text['text']</p>
<p>This allows the Text Widget to display script code from your Adsense block.</p>
<p>For more details check out this link:</p>
<p>http://www.thainy.com/2007/05/how-to-use-html-tag-and-script-in-wpmu-text-widget/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zomoca.com/2008/06/30/wordpress-adsense-text-widget-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
