<?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>MaisonBisson.com &#187; compatibility</title>
	<atom:link href="http://maisonbisson.com/blog/post/tag/compatibility/feed/" rel="self" type="application/rss+xml" />
	<link>http://maisonbisson.com</link>
	<description>A bunch of stuff I would have emailed you about.</description>
	<lastBuildDate>Sat, 14 Nov 2009 20:14:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Plugin Options Pages in WordPress 2.7</title>
		<link>http://maisonbisson.com/blog/post/13208/making-plugin-options-pages-compatible-with-wordpress-27/</link>
		<comments>http://maisonbisson.com/blog/post/13208/making-plugin-options-pages-compatible-with-wordpress-27/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 15:45:07 +0000</pubDate>
		<dc:creator>Casey Bisson</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[compatibility]]></category>
		<category><![CDATA[form validation]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[WordPress 2.7]]></category>

		<guid isPermaLink="false">http://maisonbisson.com/?p=13208</guid>
		<description><![CDATA[
WordPress 2.7 requires that plugins explicitly white list their options using a couple new functions. WordPress MU has required this security measure for a while, and it&#8217;s nice to see an evolved form of it brought to the core code. Migrating Plugins and Themes to 2.7 article in the codex offers some guidance, but here&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="maisonbisson-13208"><!-- &nbsp; --></abbr>
<p>WordPress 2.7 requires that plugins explicitly white list their options using a couple new functions. WordPress MU has required this security measure for a while, and it&#8217;s nice to see an evolved form of it brought to the core code. <a href="http://codex.wordpress.org/Migrating_Plugins_and_Themes_to_2.7#Plugins" title="Migrating Plugins and Themes to 2.7 « WordPress Codex">Migrating Plugins and Themes to 2.7</a> article in the codex offers some guidance, but here&#8217;s how it works:</p>
<p>First, register each option for your plugin during the admin_init action:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> myplugin_admin_init<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	register_setting<span style="color: #009900;">&#40;</span> <span style="">'my-options-group'</span><span style="color: #339933;">,</span> <span style="">'my-option-name-1'</span><span style="color: #339933;">,</span> <span style="">'absint'</span> <span style="color: #009900;">&#41;</span>;
	register_setting<span style="color: #009900;">&#40;</span> <span style="">'my-options-group'</span><span style="color: #339933;">,</span> <span style="">'my-option-name-2'</span><span style="color: #339933;">,</span> <span style="">'wp_filter_nohtml_kses'</span> <span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span>
add_action<span style="color: #009900;">&#40;</span> <span style="">'admin_init'</span><span style="color: #339933;">,</span> <span style="">'myplugin_admin_init'</span> <span style="color: #009900;">&#41;</span>;</pre></div></div>

<p>In the example above, the value for <code>my-option-name-1</code> will be filtered by <code>absint</code> before being saved to the options table. <code>my-option-name-2</code> will be stripped of any HTML by  <code>wp_filter_nohtml_kses</code>.</p>
<p>Then build a form like this prototype:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;form method=&quot;post&quot; action=&quot;options.php&quot;&gt;
&nbsp;
&lt;?php settings_fields('my-options-group'); ?&gt;
&nbsp;
&lt;input name=&quot;my-option-name-1&quot; id=&quot;my-option-name-1&quot; type=&quot;checkbox&quot; value=&quot;1&quot; &lt;?php checked('1', get_option('bsuite_insert_related')); ?&gt; /&gt;
&nbsp;
&lt;input name=&quot;my-option-name-2&quot; id=&quot;my-option-name-2&quot; type=&quot;text&quot; value=&quot;&lt;?php format_to_edit( get_option( 'bsuite_insert_related' )) ?&gt;&quot; /&gt;
&nbsp;
&lt;input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;&lt;?php _e('Save Changes') ?&gt;&quot; class=&quot;button&quot; /&gt;
&nbsp;
&lt;/form&gt;</pre></div></div>

<p>Easy.</p>
]]></content:encoded>
			<wfw:commentRss>http://maisonbisson.com/blog/post/13208/making-plugin-options-pages-compatible-with-wordpress-27/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Mac Wireless Card Compatibility</title>
		<link>http://maisonbisson.com/blog/post/10794/mac-pci-wireless-cards/</link>
		<comments>http://maisonbisson.com/blog/post/10794/mac-pci-wireless-cards/#comments</comments>
		<pubDate>Mon, 03 Oct 2005 16:14:03 +0000</pubDate>
		<dc:creator>Casey Bisson</dc:creator>
				<category><![CDATA[Blink]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[card compatibility]]></category>
		<category><![CDATA[compatibility]]></category>
		<category><![CDATA[compatibility list]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mac os]]></category>
		<category><![CDATA[mac os X]]></category>
		<category><![CDATA[macintosh]]></category>
		<category><![CDATA[network adapter]]></category>
		<category><![CDATA[wifi]]></category>
		<category><![CDATA[wifi adapter]]></category>
		<category><![CDATA[wifi cardbus card]]></category>
		<category><![CDATA[wifi pc card]]></category>
		<category><![CDATA[wifi pci card]]></category>
		<category><![CDATA[wifi pcmcia card]]></category>
		<category><![CDATA[wireless]]></category>
		<category><![CDATA[wireless adapter]]></category>
		<category><![CDATA[wireless adapter compatibility]]></category>

		<guid isPermaLink="false">http://maisonbisson.com/blog/?p=10794</guid>
		<description><![CDATA[
In case you&#8217;re looking: Metaphyzx&#8217;s Mac OS Wireless Adapter Compatibility List.

tags: apple, card compatibility, compatibility, compatibility list, list, mac, mac os, mac os x, macintosh, network adapter, wifi, wifi adapter, wifi cardbus card, wifi pc card, wifi pci card, wifi pcmcia card, wireless, wireless adapter, wireless adapter compatibility

]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="maisonbisson-10794"><!-- &nbsp; --></abbr>
<p>In case you&#8217;re looking: Metaphyzx&#8217;s <a href="http://home.earthlink.net/~metaphyzx/Wireless.htm" title="http://home.earthlink.net/~metaphyzx/Wireless.htm">Mac OS Wireless Adapter Compatibility List</a>.</p>
<p><!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">tags: <a href="http://www.technorati.com/tag/apple" rel="tag">apple</a>, <a href="http://www.technorati.com/tag/card compatibility" rel="tag">card compatibility</a>, <a href="http://www.technorati.com/tag/compatibility" rel="tag">compatibility</a>, <a href="http://www.technorati.com/tag/compatibility list" rel="tag">compatibility list</a>, <a href="http://www.technorati.com/tag/list" rel="tag">list</a>, <a href="http://www.technorati.com/tag/mac" rel="tag">mac</a>, <a href="http://www.technorati.com/tag/mac os" rel="tag">mac os</a>, <a href="http://www.technorati.com/tag/mac os x" rel="tag">mac os x</a>, <a href="http://www.technorati.com/tag/macintosh" rel="tag">macintosh</a>, <a href="http://www.technorati.com/tag/network adapter" rel="tag">network adapter</a>, <a href="http://www.technorati.com/tag/wifi" rel="tag">wifi</a>, <a href="http://www.technorati.com/tag/wifi adapter" rel="tag">wifi adapter</a>, <a href="http://www.technorati.com/tag/wifi cardbus card" rel="tag">wifi cardbus card</a>, <a href="http://www.technorati.com/tag/wifi pc card" rel="tag">wifi pc card</a>, <a href="http://www.technorati.com/tag/wifi pci card" rel="tag">wifi pci card</a>, <a href="http://www.technorati.com/tag/wifi pcmcia card" rel="tag">wifi pcmcia card</a>, <a href="http://www.technorati.com/tag/wireless" rel="tag">wireless</a>, <a href="http://www.technorati.com/tag/wireless adapter" rel="tag">wireless adapter</a>, <a href="http://www.technorati.com/tag/wireless adapter compatibility" rel="tag">wireless adapter compatibility</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://maisonbisson.com/blog/post/10794/mac-pci-wireless-cards/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>