<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[iDeasilo]]></provider_name><provider_url><![CDATA[https://ideasilo.wordpress.com]]></provider_url><author_name><![CDATA[Takayuki Miyoshi]]></author_name><author_url><![CDATA[https://ideasilo.wordpress.com/author/miyoshita/]]></author_url><title><![CDATA[Contact Form 7&nbsp;1.7.5]]></title><type><![CDATA[link]]></type><html><![CDATA[<p><strong><a href="https://ideasilo.wordpress.com/2007/04/30/contact-form-7/">Contact Form 7</a></strong> / <strong><a href="http://wordpress.org/extend/plugins/contact-form-7/">Download</a></strong></p>
<p>Two fixes and one enhancement. 1) The SEO issue <a href="http://techathand.net/2008/01/the-unusual-string-wpcf7json-will-it-hurt-my-seo/">reported by Dexter</a> has been fixed (I believe). 2) For <code>wpautop()</code> haters, hook function adding logic changed. 3) New <code>include_blank</code> option added to form tag of drop-down menus.</p>
<h4>SEO issue</h4>
<p><a href="http://techathand.net/2008/01/the-unusual-string-wpcf7json-will-it-hurt-my-seo/">Dexter</a> and <a href="https://ideasilo.wordpress.com/2007/04/30/contact-form-7/#comment-6027">some people</a> told me that there seems be a SEO issue in Contact Form 7.</p>
<p>The &#8220;?wpcf7=json&#8221; code is used by Contact Form 7 only in AJAX submitting (POST) process. I wonder why Google indexed such URLs even now. Anyway, I worked around the issue.</p>
<p>Now Contact Form 7 doesn&#8217;t use &#8220;?wpcf7=json&#8221;, so I believe that kind of problem is fixed. But Google&#8217;s existing indexes are still there, I can&#8217;t do anything for that.</p>
<h4>If you hate <code>wpautop()</code></h4>
<p><code>wpautop()</code> is a WordPress&#8217;s built-in filter which automatically surrounds a paragraph with <code>&lt;p&gt;&lt;/p&gt;</code> tag. It&#8217;s useful and I like it, while I know some users hate it.</p>
<p>Some users remove the filter by commenting out a line in wp-includes/default-filters.php like below.</p>
<blockquote><p><code>//add_filter('the_content', 'wpautop');</code></p></blockquote>
<p># Well, this is just an example. I don&#8217;t suggest that.</p>
<p>But when you are using Contact Form 7, this hack doesn&#8217;t work.</p>
<p><code>wpautop()</code> is clever, but it doesn&#8217;t correctly treat form control elements. See <a href="http://trac.wordpress.org/ticket/4605">this ticket</a>. It&#8217;s a big issue for Contact <em>Form</em> 7. So Contact Form 7 removes original <code>wpautop()</code> filter, and adds patched one.</p>
<p>Due to this, if you want to remove <code>wpautop()</code> filtering, you need to hack codes in Contact Form 7 so far. It was sometimes confusing for the anti-autop hackers who didn&#8217;t know Contact Form 7 is doing such replacing.</p>
<p>In this release, I changed the replacing logic. Now it replaces <code>wpautop()</code> only if original <code>wpautop()</code> is registered on the filters array. So if you hate <code>wpautop()</code>, you can remove it by just editting wp-includes/default-filters.php.</p>
<h4>New <code>include_blank</code> option for drop-down menu</h4>
<p>If <code>include_blank</code> option is set, drop-down menu inserts a blank item &#8220;&#8212;&#8221; into the top of it. So this tag</p>
<blockquote><p><code>[select your-menu "---" "a" "b" "c"]</code></p></blockquote>
<p>and this tag</p>
<blockquote><p><code>[select your-menu <strong>include_blank</strong> "a" "b" "c"]</code></p></blockquote>
<p>have the same semantics.</p>
<p>I recommend you to use this option because it seems that some browsers don&#8217;t submit first option&#8217;s value in a menu, even if they shows the first one as selected by default. See also <a href="http://www.w3.org/TR/html4/interact/forms.html#h-17.6.1">the HTML spec</a>.<br />
<!--more--></p>
<hr />
<p> (In Japanese from here.)</p>
<p>修正が2つ、機能追加が1つあります。1) <a href="http://techathand.net/2008/01/the-unusual-string-wpcf7json-will-it-hurt-my-seo/">Dexter さんから報告された</a> SEO 関連の問題が修正されました(と、思います)。2) <code>wpautop()</code> を毛嫌いする人のためにフック関数まわりのロジックが変更されました。3) 新たに <code>include_blank</code> オプションがドロップダウンメニューのタグに追加されました。</p>
<h4>SEO 関連の問題</h4>
<p><a href="http://techathand.net/2008/01/the-unusual-string-wpcf7json-will-it-hurt-my-seo/">Dexter さん</a>と<a href="https://ideasilo.wordpress.com/2007/04/30/contact-form-7/#comment-6027">そのほかの方</a>から Contact Form 7 に SEO 上の問題があるようだとの報告が寄せられました。</p>
<p>&#8220;?wpcf7=json&#8221; というコードは Contact Form 7 が AJAX での送信 (POST による) に限って使用しているものです。なぜそんな URL を Google はインデックスしたのか、いまだによくわかっていません。ともかく、対策を講じることにしました。</p>
<p>今回のリリースから Contact Form 7 は &#8220;?wpcf7=json&#8221; を使いません。これでこの手の問題は解決されたものと思います。ただしすでに Google にインデックスされているものはそのままなので、これについてはどうしようもありません。</p>
<h4><code>wpautop()</code> がお嫌いなら</h4>
<p><code>wpautop()</code> は WordPress のビルトイン・フィルタで、パラグラフを自動的に <code>&lt;p&gt;&lt;/p&gt;</code> タグで囲みます。便利な機能ですがこれが嫌いだというユーザもいるようです。</p>
<p>一部のユーザはこのフィルタを無効にするために wp-includes/default-filters.php の一行を以下のようにコメントアウトして使っています。</p>
<blockquote><p><code>//add_filter('the_content', 'wpautop');</code></p></blockquote>
<p># これは単に例として示しているだけで、別に勧めているわけではありません。</p>
<p>ところが、Contact Form 7 を使っているとこのハックが機能しません。</p>
<p><code>wpautop()</code> は賢いのですが、困ったことにフォーム関連の要素を間違って扱ってしまいます(<a href="http://trac.wordpress.org/ticket/4605">Trac #4605</a> を参照)。これは Contact Form 7 にとっては重大な問題なので、Contact Form 7 ではいったん元の <code>wpautop()</code> を削除して、代わりにパッチが当てられた修正版の <code>wpautop()</code> を追加することで回避しています。</p>
<p>このため、もし <code>wpautop()</code> のフィルタを無効にしたいなら、Contact Form 7 のファイルに手を入れる必要がありました。このことは Contact Form 7 がそのような置換をしていることを知らないアンチ <code>wpautop()</code> なユーザにとって困惑の種だったようです。</p>
<p>今回のリリースからは、この置換のロジックを変更し、オリジナルの <code>wpautop()</code> が適用フィルタの配列に登録されている場合に限定して修正版への置換を行うようにしました。これにより wp-includes/default-filters.php の編集で <code>wpautop()</code> のフィルタを無効化できるようになっています。</p>
<h4>ドロップダウンメニューのための <code>include_blank</code> オプション</h4>
<p><code>include_blank</code> オプションがセットされていると、ドロップダウンメニューは空の項目 &#8220;&#8212;&#8221; を先頭に挿入します。ですから次のタグ</p>
<blockquote><p><code>[select your-menu "---" "a" "b" "c"]</code></p></blockquote>
<p>と、次のタグ</p>
<blockquote><p><code>[select your-menu <strong>include_blank</strong> "a" "b" "c"]</code></p></blockquote>
<p>は意味的に同じです。</p>
<p>一部のブラウザでは、たとえ先頭の項目をデフォルトの選択オプションとして表示されている場合であっても、その先頭の項目の値は送信しないようなので、<code>include_blank</code> オプションの使用を推奨します。関連する <a href="http://www.w3.org/TR/html4/interact/forms.html#h-17.6.1">HTML の仕様がこちら</a>。</p>
]]></html></oembed>