WP: デフォルトテーマの変更点(2.0.4)の反映
Responses:
- No Responses yet
- コメントをどうぞ
- Trackback URI
- RSS 2.0: 更新情報
- RSS 2.0: Comments
WordPress ME 2.0.3 から 2.0.4 へアップグレードする際、default テーマの差分に関する作業を保留していたが、今回チェックを行い、現在のテーマへの反映作業を行った。
default テーマ比較
ME 2.0.3 では差分ファイルがなかったので、ME 2.0.2 (ver.0.5) → 2.0.4 (ver.1.6) を比較。
15行目attachment.php<div class="entrytext">→<div class="entry">
32~34行目comments-popup.php- 旧
$comment_author = (isset($_COOKIE['comment_author_' . COOKIEHASH])) ? trim($_COOKIE['comment_author_'. COOKIEHASH]) : ''; $comment_author_email = (isset($_COOKIE['comment_author_email_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_email_'. COOKIEHASH]) : ''; $comment_author_url = (isset($_COOKIE['comment_author_url_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_url_'. COOKIEHASH]) : ''; - 新
$commenter = wp_get_current_commenter(); extract($commenter);
- 旧
4行目にコメント挿入footer.php<!-- If you'd like to support WordPress, having the "powered by" link someone on your blog is the best way, it's our only promotion or advertising. -->
数ヶ所あるが、今のテーマで使っていないのでパス。functions.php
旧16~41行目が次のものに置換。(今のテーマでは削除してある部分)header.php<?php // Checks to see whether it needs a sidebar or not if ( !$withcomments && !is_single() ) { ?> #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg.jpg") repeat-y top; border: none; } <?php } else { // No sidebar ?> #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; } <?php } ?>
8行目page.php<div class="entrytext">→<div class="entry">
15行目single.php<div class="entrytext">→<div class="entry">style.css- ヘッダ画像部分
- body マージンその他微調整
行った作業
- default テーマは 2.0.4 のファイルで上書き。
- 現在のこのサイトのテーマは、次のファイルを修正。(使っていないものもあるけど一応)
attachment.phpcomments-popup.phppage.phpsingle.php- (CSS 整理予定があるので、スタイルシートの .entrytext 関連の修正は保留)


