<?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>Konstantin Kovshenin &#187; baker</title>
	<atom:link href="http://kovshenin.com/tag/baker/feed/" rel="self" type="application/rss+xml" />
	<link>http://kovshenin.com</link>
	<description>WordPress, Automattic and Open Source</description>
	<lastBuildDate>Thu, 17 May 2012 08:56:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Thickbox and jQuery in WordPress 2.8</title>
		<link>http://kovshenin.com/2009/thickbox-and-jquery-in-wordpress-2-8/</link>
		<comments>http://kovshenin.com/2009/thickbox-and-jquery-in-wordpress-2-8/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 11:01:08 +0000</pubDate>
		<dc:creator>Konstantin Kovshenin</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[baker]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[thickbox]]></category>

		<guid isPermaLink="false">http://kovshenin.com/?p=894</guid>
		<description><![CDATA[The update was great! The new features in WordPress 2.8 are awesome! Most of my Twitter friends have updated to 2.8 and haven&#8217;t had a single issue. The new widgets area is so cool! Oh jeez, I&#8217;m so excited. For a full features list check out Version 2.8 section in the Codex. Anyway, the only [...]]]></description>
			<content:encoded><![CDATA[<p>The update was great! The new features in WordPress 2.8 are awesome! Most of my Twitter friends have updated to 2.8 and haven&#8217;t had a single issue. The new widgets area is so cool! Oh jeez, I&#8217;m so excited. For a full features list check out <a href="http://codex.wordpress.org/Version_2.8">Version 2.8</a> section in the Codex.</p>
<p>Anyway, the only issue I had so far is the Thickbox usage. I&#8217;m not sure why it&#8217;s lost, but I&#8217;ve discovered it in the <a href="http://kovshenin.com/wordpress/plugins/quick-flickr-widget/">Quick Flickr Widget</a> plugin when upgrading. The thickbox feature worked fine in 2.7 and 2.7.1. For an unknown reason, WordPress 2.8 doesn&#8217;t call the thickbox.js file through wp_enqueue_script. The other js libraries work fine though (prototype, scriptaculous). jQuery&#8217;s being called out too btw, cause it&#8217;s a dependency of Thickbox, but thickbox never shows up. This is actually weird. I hope I&#8217;m not the only one with this issue, cause it&#8217;s starting to feel bad ;)</p>
<p>I&#8217;ll submit a bug ticket to their Trac for 2.8.1, but until that here&#8217;s a temporary workaround:</p>
<pre>global $wp_version;
if ($wp_version == "2.8") wp_enqueue_script("thickbox28", "/wp-includes/js/thickbox/thickbox.js", array("jquery"));
else wp_enqueue_script("thickbox");
</pre>
<p>Hope this helps. And don&#8217;t forget to inject the thickbox CSS and javascript settings in the wp_head action.</p>
<p><strong>Update</strong>: Thickbox loads in the footer section in WordPress 2.8, that should be right before the closing body tag. And yes, loads of themes are lacking the wp_footer() function call. So, forget about the workaround, fix your themes first.</p>
<p>The 1.2.9 update of Quick Flickr Widget included the fix above, so 1.2.10 reverts that fix back to the standard way, sorry for the hassle ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://kovshenin.com/2009/thickbox-and-jquery-in-wordpress-2-8/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

