<?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>ZERO OFFICE &#187; wordpress</title>
	<atom:link href="http://www.zero-office.com/category/blog/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zero-office.com</link>
	<description>information about ZERO OFFICE CO., LTD.</description>
	<lastBuildDate>Fri, 27 Aug 2010 03:13:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>WordPress2.7 の Dashboard. Screen Options のデフォルトをカスタマイズ (BUG FIX)</title>
		<link>http://www.zero-office.com/2009/04/16/show-slugs-dashboard-of-wordpress/</link>
		<comments>http://www.zero-office.com/2009/04/16/show-slugs-dashboard-of-wordpress/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 09:10:51 +0000</pubDate>
		<dc:creator>tango_zero</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.zero-office.com/?p=275</guid>
		<description><![CDATA[WordPress2.7 の Dashboard で Post や Page の編集画面では、Post Slug (ポストスラッグ) Page Slug (ページスラッグ) がデフォルトで非表示になっています。
ヘッダー [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress2.7 の Dashboard で Post や Page の編集画面では、Post Slug (ポストスラッグ) Page Slug (ページスラッグ) がデフォルトで非表示になっています。<br />
ヘッダー付近の Screen Options タブで設定できますが、すべてを ON にすると、（バグのため？）上記 Slug のみ OFF (非表示) に戻ってしまいます。<br />
おそらく、slug に 2byte コードが混入されるのを防ぐためだと思われますが、これを使って積極的にコントロールしたい場合には不便です。</p>
<p>コアファイルを直接編集することになりますので、試される場合には自己責任にてお願いします。<br />
また、当然ながら WordPress のアップデートがされた場合には再度編集する必要があります。</p>
<p>コアファイルに手をつけるのはどうかなとも思いますが、どうもうまい方法が浮かびません。<br />
オーバーライドできる関数であれば、Plugins や /wp-content/themes/MY_THEME/functions.php でカスタマイズした方がよいのですけどね。</p>
<p>ユーザーオプションの meta-box-hidden に架空の項目を作ってこれをオフにするような方法もありますが、きちんと後始末しておかないとデータベースにゴミが残りそうです。</p>
<p>/wp-admin/includes/template.php<br />
line 2866 付近 の function get_hidden_meta_boxes()<br />
&#8220;Hide slug boxes by default&#8221; とコメントしてある部分を無効化します。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> get_hidden_meta_boxes<span style="color: #009900;">&#40;</span><span style="color: #000088;">$page</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$hidden</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#41;</span> get_user_option<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;meta-box-hidden_<span style="color: #006699; font-weight: bold;">$page</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Hide slug boxes by default</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hidden</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'page'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$page</span> <span style="color: #009900;">&#41;</span>
			<span style="color: #000088;">$hidden</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pageslugdiv'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'post'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$page</span> <span style="color: #009900;">&#41;</span>
			<span style="color: #000088;">$hidden</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'slugdiv'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$hidden</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>これを下記のようにコメントアウトします。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> get_hidden_meta_boxes<span style="color: #009900;">&#40;</span><span style="color: #000088;">$page</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$hidden</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#41;</span> get_user_option<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;meta-box-hidden_<span style="color: #006699; font-weight: bold;">$page</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Hide slug boxes by default --- comment out by USER</span>
<span style="color: #666666; font-style: italic;">/*	if ( empty($hidden[0]) ) {
		if ( 'page' == $page )
			$hidden = array('pageslugdiv');
		elseif ( 'post' == $page )
			$hidden = array('slugdiv');
	}*/</span>
&nbsp;
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$hidden</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>くれぐれも、自己責任で。バックアップをお忘れ無く。</p>
<p>追記<br />
この件、本家のバグトラックを当たってみたのですが、そもそも、別のバグのためにこのような仕様になってしまったようですね。<br />
バグなのか仕様になってしまうのか？できれば直してもらいたい物です。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zero-office.com/2009/04/16/show-slugs-dashboard-of-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress 2.7.1 Released</title>
		<link>http://www.zero-office.com/2009/02/12/wordpress-271-released/</link>
		<comments>http://www.zero-office.com/2009/02/12/wordpress-271-released/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 03:38:21 +0000</pubDate>
		<dc:creator>tango_zero</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.zero-office.com/?p=267</guid>
		<description><![CDATA[WordPress をお使いの方は、Dashboard に表示されるのですでにご存知だと思いますが、表記の様に WordPress が 2.7.1 にアップデートされています。
2.7.1 fixes 68 ticket [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress をお使いの方は、Dashboard に表示されるのですでにご存知だと思いますが、表記の様に WordPress が 2.7.1 にアップデートされています。</p>
<blockquote><p><a href="http://core.trac.wordpress.org/query?status=closed&#038;milestone=2.7.1&#038;resolution=fixed&#038;order=priority">2.7.1 fixes 68 tickets.</a></p></blockquote>
<p>とありますが、バグフィックスがメインな様です。サーバー側の設定がよければ、オートアップデートで簡単に出来ますが、既存のテーマが動かなくなる事もある様なので、バックアップをしてからの作業をお勧めします。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zero-office.com/2009/02/12/wordpress-271-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
