【至急・重要】ウィルスチェックのお願い

Change Style


WP: デフォルトテーマの変更点(2.0.4)の反映

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) を比較。

  • attachment.php
    15行目 <div class="entrytext"><div class="entry">
  • comments-popup.php
    32~34行目
    • $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);
  • footer.php
    4行目にコメント挿入
    <!-- 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
    数ヶ所あるが、今のテーマで使っていないのでパス。
  • header.php
    旧16~41行目が次のものに置換。(今のテーマでは削除してある部分)
    <?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 } ?>
  • page.php
    8行目 <div class="entrytext"><div class="entry">
  • single.php
    15行目 <div class="entrytext"><div class="entry">
  • style.css
    • ヘッダ画像部分
    • body マージンその他微調整

行った作業

  • default テーマは 2.0.4 のファイルで上書き。
  • 現在のこのサイトのテーマは、次のファイルを修正。(使っていないものもあるけど一応)
    • attachment.php
    • comments-popup.php
    • page.php
    • single.php
    • (CSS 整理予定があるので、スタイルシートの .entrytext 関連の修正は保留)

YOU、これも読んじゃないなYO!

コメントをどうぞ