<?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/"
	>

<channel>
	<title>Kaizeku Ban &#187; wp26</title>
	<atom:link href="http://blog.kaizeku.com/taxonomy/wp26/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.kaizeku.com</link>
	<description>So many evil plans, so little time...</description>
	<pubDate>Wed, 19 Nov 2008 01:02:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7-beta2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Chrome Milk 1.6.2 RC 1 Released</title>
		<link>http://blog.kaizeku.com/wordpress/chrome-milk-162-rc1/</link>
		<comments>http://blog.kaizeku.com/wordpress/chrome-milk-162-rc1/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 10:00:39 +0000</pubDate>
		<dc:creator>Avice</dc:creator>
		
		<category><![CDATA[Themes]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[microformats]]></category>

		<category><![CDATA[OpenSearch]]></category>

		<category><![CDATA[theme]]></category>

		<category><![CDATA[wp26]]></category>

		<category><![CDATA[wp27]]></category>

		<category><![CDATA[wpistalker]]></category>

		<guid isPermaLink="false">http://blog.kaizeku.com/?p=589</guid>
		<description><![CDATA[This release (at revision 63) fixes the bug with WPI content permalinks and added support for WordPress 2.7 comment features. 
Chrome Milk 1.6.2 RC1 Screenshot


WordPress 2.7x reply form (jQuery thickbox)


A9 OpenSearch 1.1 Auto-discovery (OSD)


Various Microformats embed


Safari native search feature


WordPress 2.7x Comments Pagination


Download

Chrome Milk 1.6.2 RC 1 &#183;(436 KB) &#183; SHA1 cheksum 76eb07ecc9d61fdabc33f9fb312842221e241e9d
Chrome Milk 1.6.2 RC [...]]]></description>
			<content:encoded><![CDATA[<p>This release <small>(at revision 63)</small> fixes the bug with <abbr title="WP-iStalker">WPI</abbr> content permalinks and added support for WordPress 2.7 comment features. </p>
<h3 class="toggle-content">Chrome Milk 1.6.2 RC1 Screenshot</h3>
<div class="dn">
<div id="attachment_594" class="wp-caption aligncenter mgb" style="width: 310px;margin-bottom: 18px !important;margin-top:18px !important"><a href="http://blog.kaizeku.com/wp-content/uploads/2008/11/comments-reply.gif" class="thickbox" rel="chrome-milk" title="WordPress 2.7 jQuery thickbox reply form"><img src="http://blog.kaizeku.com/wp-content/uploads/2008/11/comments-reply-300x164.gif" alt="Thickbox reply form" title="comments-reply" width="300" height="164" class="size-medium wp-image-594" /></a>
<p class="wp-caption-text">WordPress 2.7x reply form (jQuery thickbox)</p>
</div>
<div id="attachment_597" class="wp-caption aligncenter mgb" style="width: 310px;margin-bottom: 18px !important"><a href="http://blog.kaizeku.com/wp-content/uploads/2008/11/valid-osd.gif" class="thickbox" rel="chrome-milk" title="A9 OpenSearch Discovery (OSD)"><img src="http://blog.kaizeku.com/wp-content/uploads/2008/11/valid-osd-300x107.gif" alt="A9 OpenSearch 1.1 Auto-discovery" title="valid-osd" width="300" height="107" class="size-medium wp-image-597" /></a>
<p class="wp-caption-text">A9 OpenSearch 1.1 Auto-discovery (OSD)</p>
</div>
<div id="attachment_600" class="wp-caption aligncenter mgb" style="width: 310px;margin-bottom: 18px !important"><a href="http://blog.kaizeku.com/wp-content/uploads/2008/11/valid-microformats.gif" class="thickbox" rel="chrome-milk" title="Microformats embed - Operator"><img src="http://blog.kaizeku.com/wp-content/uploads/2008/11/valid-microformats-300x219.gif" alt="Valid microformats " title="valid-microformats" width="300" height="219" class="size-medium wp-image-600 thickbox" /></a>
<p class="wp-caption-text">Various Microformats embed</p>
</div>
<div id="attachment_603" class="wp-caption aligncenter mgb" style="width: 310px;margin-bottom: 18px !important"><a href="http://blog.kaizeku.com/wp-content/uploads/2008/11/native-safari-support.gif"><img src="http://blog.kaizeku.com/wp-content/uploads/2008/11/native-safari-support-300x112.gif" alt="Safari native search feature" title="native-safari-support" width="300" height="112" class="size-medium wp-image-603 thickbox" /></a>
<p class="wp-caption-text">Safari native search feature</p>
</div>
<div id="attachment_606" class="wp-caption aligncenter mgb" style="width: 310px;margin-bottom: 18px !important"><a href="http://blog.kaizeku.com/wp-content/uploads/2008/11/comment-pagination.png" class="thickbox" rel="chrome-milk" title="WordPress 2.7 Comment paging"><img src="http://blog.kaizeku.com/wp-content/uploads/2008/11/comment-pagination-300x171.png" alt="comment pagination WP 2.7x" title="comment-pagination" width="300" height="171" class="size-medium wp-image-606" /></a>
<p class="wp-caption-text">WordPress 2.7x Comments Pagination</p>
</div>
</div>
<h3 class="pdt">Download</h3>
<ul class="xoxo">
<li><a href="http://wp-istalker.googlecode.com/files/wp-istalker-chrome-1.6.2rc1.zip" rel="external" title="Zip archive 1.6.2 RC1">Chrome Milk 1.6.2 RC 1</a> &middot;<small>(436 KB)</small> &middot; <small class="title-">SHA1 cheksum</small><tt class="dn"> 76eb07ecc9d61fdabc33f9fb312842221e241e9d</tt></li>
<li><a href="http://wp-istalker.googlecode.com/files/wp-istalker-chrome-1.6.2rc1.tar.gz" rel="external" title="Tar GZIP archive 1.6.2 RC1">Chrome Milk 1.6.2 RC 1 (tar.gz)</a> &middot; <small>(377 KB)</small> &middot; <small class="title-">SHA1 cheksum</small><tt class="dn">836b6859225b036f750143019a0b50f2b2e7f85c</tt></li>
</ul>
<p><span id="more-589"></span></p>
<p>More on this &rarr; <a href="http://wp.istalker.net/wordpress/chrome-milk-162-rc1/" rel="external" title="Chrome Milk RC1">Chrome Milk 1.6.2 Release Candidate 1</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.kaizeku.com/wordpress/chrome-milk-162-rc1/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Google gears script conflict</title>
		<link>http://blog.kaizeku.com/wordpress/google-gears-script-conflict/</link>
		<comments>http://blog.kaizeku.com/wordpress/google-gears-script-conflict/#comments</comments>
		<pubDate>Sat, 05 Jul 2008 15:37:07 +0000</pubDate>
		<dc:creator>Avice</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[firebug]]></category>

		<category><![CDATA[google gears]]></category>

		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[wp26]]></category>

		<guid isPermaLink="false">http://blog.kaizeku.com/?p=177</guid>
		<description><![CDATA[I&#8217;m running a test for wordpress 2.6 beta1 &#38; beta2 on my development server when Firebug throw this unexpected error while on the WP Admin dashboard (see the attachment). 
The error notices is a total garbage, its something I&#8217;m not familiar with.
What surprised me is not the actual javascript errors but because google gears files [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.kaizeku.com/wp-content/uploads/2008/07/wp-gears-pin-up-by-chaoskaizer.png" alt="wp-gears" title="wp-gears-pin-up-by-chaoskaizer" width="128" height="128" class="alignleft size-full wp-image-180" />I&#8217;m running a test for <a href="http://wordpress.org/download/release-archive/">wordpress 2.6 beta1 &amp; beta2</a> on my development server when <abbr title="a javascript debugger for firefox">Firebug</abbr> throw this unexpected error while on the <abbr title="WordPress">WP</abbr> Admin dashboard (see the <a href="#attachment-lists">attachment</a>). </p>
<p>The error notices is a total garbage, <em>its something I&#8217;m not familiar with.</em></p>
<p>What surprised me is not the actual javascript errors but because <tt>google gears</tt> files is <span class="hilite-2">register as default</span> wordpress scripts and running in the background, loaded via <tt>wp_default_scripts</tt> action hook filters <small>(ref: script-loader.php Line:195)</small> and there is no possible way to disabled this script from being loaded without editing the main files.</p>
<p><span id="more-177"></span></p>
<h4>Attachments</h4>
<ol id="attachment-lists" class="xoxo">
<li>
<h5>Firebug Console Debug</h5>
<p><a href='http://blog.kaizeku.com/wordpress/google-gears-script-conflict/attachment/wordpress-wp-gears-conflict/' rel="attachment wp-att-178"><img src="http://blog.kaizeku.com/wp-content/uploads/2008/07/wordpress-wp-gears-conflict-150x150.png" alt="" title="wordpress-wp-gears-conflict" width="150" height="150" class="alignnone size-thumbnail wp-image-178" /></a></li>
<li>
<h5>Firebug Console: Loaded object, DOM tree</h5>
<p><a href='http://blog.kaizeku.com/wordpress/google-gears-script-conflict/attachment/wordpress-wp-gears-conflict-dom/' rel="attachment wp-att-179"><img src="http://blog.kaizeku.com/wp-content/uploads/2008/07/wordpress-wp-gears-conflict-dom-150x150.png" alt="dom failed" title="wordpress-wp-gears-conflict-dom" width="150" height="150" class="alignnone size-thumbnail wp-image-179" /></a></li>
</ol>
<p>This was tested on <tt>Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9) Gecko/2008062315 (Gentoo) Firefox/3.0</tt> &amp; <tt>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/20080623 Firefox/2.0.0.15</tt></p>
<h3 class="mgt">More options</h3>
<p><a href="http://gears.google.com">Google gears</a> is a third party provider for wonderful client storage applications (Structured client-side storage) and by all meant not all end-user will be using this features (because some are really concern with their privacy). </p>
<p>IMHO its a good practice to have an options to disabled google gears (not running in the background) and should be handle like the XML-RPC settings in WP 2.6.</p>
<p>hope to see more clean version of wordpress for 2.6 release.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.kaizeku.com/wordpress/google-gears-script-conflict/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WP 2.6 user defined constant</title>
		<link>http://blog.kaizeku.com/wordpress/wp-26-user-defined-constant-plugin-issues/</link>
		<comments>http://blog.kaizeku.com/wordpress/wp-26-user-defined-constant-plugin-issues/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 16:55:51 +0000</pubDate>
		<dc:creator>Avice</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[plugins]]></category>

		<category><![CDATA[hook]]></category>

		<category><![CDATA[wp26]]></category>

		<guid isPermaLink="false">http://blog.kaizeku.com/?p=171</guid>
		<description><![CDATA[The upcoming WordPress 2.6 introduces new user defined constant for specific critical system directory settings. This new improvement may seem like a small “change” but on plugin developer context it can be an impending disaster.]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.kaizeku.com/wp-content/uploads/2008/07/wp-26-wp-config-previewpinup-by-ck.png" alt="wp 2.6 plugin issue" title="wp-26-wp-config-previewpinup-by-ck" width="128" height="128" class="alignright size-full wp-image-172" />The upcoming <a href="http://wordpress.org">WordPress</a> 2.6 introduces new <span class="fw">user defined</span> constant for specific <em>critical system directory</em> settings. This new improvement may seem like a small &#8220;change&#8221; but on plugin developer context it can be an impending disaster.</p>
<h2>wp-config &amp; wp-load files</h2>
<p>Most plugin depend on &#8220;absolute path&#8221; to wordpress system file (wp-config.php). So the problem is there. </p>
<p><a href="http://lesterchan.net/">Lester-chan (GaMerZ)</a> has this to say regarding the new WordPress 2.6 constant change.</p>
<blockquote cite="http://weblogtoolscollection.com/archives/2008/06/30/what-you-need-to-know-about-wordpress-26/#comment-1232513"><p>The constant only get loaded when you load WP. Plugins will have problem finding wp-config.php or wp-blog-header.php from the plugin file.</p>
</blockquote>
<h3>might be broken in WP 2.6</h3>
<pre class="smallbox">require_once('../../../wp-config.php');</pre>
<h5>Long story, short</h5>
<p>Below is my workaround for quick plugin activation setup. Its not the best solution as it involved the dirty &#8220;write-permission&#8221;, it need improvement. If you intent to uses it, there is few preliminary step to be set first:- &darr;</p>
<p><span id="more-171"></span></p>
<ol class="xoxo">
<li>browse to your plugin dir</li>
<li>create a blank php file: <tt>constant.php</tt></li>
<li>copy paste the below code save it as new file relative to the constant.php</li>
<li>create or set your <tt class="hilite-1">.htaccess</tt> and add <tt>Options All -Indexes</tt>.</li>
</ol>
<h5>Custom wp config file</h5>
<pre class="prebox">
function my_plugin_write_config&#40;&#41;
&#123;
	&#36;constant &#61; get_defined_constants&#40;true&#41;&#59;
	&#36;user_defined &#61; &#36;constant&#91;&#39;user&#39;&#93;&#59;
	unset&#40;&#36;constant&#41;&#59;

	&#36;constant &#61; array&#40;&#41;&#59;

	&#47;&#47; assuming that all latest wordpress CONSTANT start with WP_
	&#36;wp_constant_prefix &#61; &#34;&#47;WP_&#47;&#34;&#59;

	foreach&#40;&#36;user_defined as &#36;k&#61;&#62;&#36;v&#41;&#123;
		if &#40;preg_match&#40;&#36;wp_constant_prefix&#44;&#36;k&#41;&#41;&#123;
			&#36;constant&#91;&#36;k&#93; &#61; &#36;v&#59;
		&#125;
	&#125;

	unset&#40;&#36;user_defined&#41;&#59;

	&#36;constant&#91;&#39;ABSPATH&#39;&#93; &#61; &#40;strtr&#40;realpath&#40;ABSPATH&#41;&#44; array&#40;&#34;&#92;&#92;&#34;&#44; DIRECTORY_SEPERATOR&#41;&#41;&#41;&#59;
	&#36;constant&#91;&#39;WPINC&#39;&#93; 	&#61; WPINC&#59;
	&#36;constant&#91;&#39;WP_VERSION&#39;&#93; &#61; get_bloginfo&#40;&#39;version&#39;&#41;&#59;

	&#36;constant &#61; array_map&#40;&#39;json_encode&#39;&#44;&#36;constant&#41;&#59;

	&#36;my_plugin_config_file 	&#61; dirname&#40;__FILE__&#41;&#46;DIRECTORY_SEPARATOR&#46;&#39;constant&#46;php&#39;&#59;

	if &#40;is_writeable&#40;&#36;my_plugin_config_file&#41;&#41;
	&#123;
		&#36;content &#61; &#34;&#60;&#63;php if&#40;&#33;defined&#40;&#39;MY_PLUGIN_TOKEN&#39;&#41;&#41; die&#40;&#39;42&#39;&#41;&#59;&#92;n&#34;&#59;

		foreach&#40;&#36;constant as &#36;k&#61;&#62;&#36;v&#41;&#123;
			&#36;content &#46;&#61; sprintf&#40;&#39;define&#40;&#92;&#39;CONST_&#37;1s&#92;&#39;&#44; &#37;2s&#41;&#59;&#39;&#44;strtoupper&#40;&#36;k&#41;&#44;&#36;v&#41;&#46;&#34;&#92;n&#34;&#59;
		&#125;

		unset&#40;&#36;constant&#44;&#36;k&#44;&#36;v&#41;&#59;

		&#36;content &#46;&#61; &#34;&#63;&#62;&#34;&#59;	

		&#36;fp &#61; false&#59;

		if &#40; &#40;&#36;fp &#61; fopen&#40;&#36;my_plugin_config_file&#44;&#39;w&#43;&#39;&#41; &#41; &#33;&#61; false&#41; &#123;
			stream_set_blocking&#40;&#36;fp&#44; TRUE&#41;&#59;
			stream_set_timeout&#40;&#36;fp&#44;5&#41;&#59;
			stream_set_write_buffer&#40;&#36;fp&#44; 0&#41;&#59;
			fwrite&#40;&#36;fp&#44; &#36;content&#41;&#59;
			fclose&#40;&#36;fp&#41;&#59;
		&#125;		

		unset&#40;&#36;content&#44;&#36;my_plugin_config_file&#44;&#36;fp&#41;&#59;

	&#125; else &#123;
		add_action&#40;&#39;admin_notices&#39;&#44;&#39;my_plugin_notification&#39;&#41;&#59;
	&#125;
&#125;

function my_plugin_notification&#40;&#41;
&#123;
&#63;&#62;	&#60;div id&#61;&#34;message&#34; class&#61;&#34;error&#34;&#62;
	&#60;h3&#62;&#60;&#63;php _e&#40;&#39;ERR&#39;&#41; &#63;&#62; &#60;&#47;h3&#62;
		&#60;p&#62;&#60;a href&#61;&#34;http&#58;&#47;&#47;doc&#46;myplugin&#46;com&#34;&#62;&#60;&#63; _e&#40;&#39;RTFM&#33;&#39;&#41;&#59; &#63;&#62;&#60;&#47;a&#62;&#60;&#47;p&#62;
	&#60;&#47;div&#62;
&#60;&#63;php
&#125;

register_activation_hook&#40;__FILE__&#44; &#39;my_plugin_write_config&#39; &#41;&#59;
add_action&#40;&#39;update_option_siteurl&#39;&#44;&#39;my_plugin_write_config&#39;&#41;&#59;
add_action&#40;&#39;update_option_home&#39;&#44;&#39;my_plugin_write_config&#39;&#41;&#59;
</pre>
<p>Basically this script will search all user defined constant that start with <strong>&#8220;WP_&#8221;</strong> prefix, plus additional wordpress constant. Then it will write all these constant to disk inside &#8220;constant.php&#8221; (once). It also runs after a WordPress option has been update (active when user update settings for home &amp; siteurl, I add the extra action hook just for example).</p>
<h3>Deprecated Functions</h3>
<p>Out of all this issue I still think WordPress as one of the best &#8220;back-compat friendly&#8221; CMS. Most of the legacy functions &amp; variables (since version 0.71 >= 2.5) is still available inside WordPress system <small>(<tt>wp-includes/deprecated.php</tt>)</small>. Not sure how long it will stay there..</p>
<h5>Might be interested</h5>
<ul class="xoxo">
<li><a href="http://weblogtoolscollection.com/archives/2008/06/30/what-you-need-to-know-about-wordpress-26/">What You Need To Know About WordPress 2.6</a></li>
<li><a href="http://technosailor.com/2008/06/30/10-things-you-need-to-know-about-wordpress-26/">10 Things You Need to Know About WordPress 2.6</a></li>
<li><a href="http://planetozh.com/blog/2008/07/what-plugin-coders-must-know-about-wordpress-26/">What Plugin Coders Must Know About WordPress 2.6</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://blog.kaizeku.com/wordpress/wp-26-user-defined-constant-plugin-issues/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
