wp0.3.3-patch050308 を適用したところ、最近のコメントブロックの HTML の出力で、気がついたところがありましたのでご報告します。まず、wp_recent_comments.php の96行目あたりの li タグに指定されているclass名の後ろに ; が入ってしまっているために文法エラーになっていました。そこで、96行目あたりの以下の部分を $permalink = get_permalink($lcomment->ID)."#comment-".$lcomment->comment_ID; $output .= '<li><span class="comment-author";">' . $comment_author . ':</span> <a href="' . $permalink; $output .= '" title="View the entire comment by ' . $comment_author.'">' . $comment_excerpt . '...</a>'; 以下の様に変更することで回避しました。 $permalink = get_permalink($lcomment->ID)."#comment-".$lcomment->comment_ID; $output .= '<li><span class="comment-author">' . $comment_author . ':</span> <a href="' . $permalink; $output .= '" title="View the entire comment by ' . $comment_author.'">' . $comment_excerpt . '...</a>'; また、Comment Type を有効にしている場合に出力される style 指定で、?"font-size:70%?というスタイルが出力されてここも文法エラーになっています。98行目あたりの、以下の部分を if ($show_type) { $output .= "<span style=?"font-size:70%?">- ".$type."</span>"; } $output .= "</li>?n"; 以下の様に変更することで、正しいタグが出力される様になりました。 if ($show_type) { $output .= "<span style=?"font-size:70%?">- $type</span>"; } $output .= "</li>?n"; 以上の対処方法が正しいのか自信がありませんが、気がついたので取り急ぎご報告まで。
$permalink = get_permalink($lcomment->ID)."#comment-".$lcomment->comment_ID; $output .= '<li><span class="comment-author";">' . $comment_author . ':</span> <a href="' . $permalink; $output .= '" title="View the entire comment by ' . $comment_author.'">' . $comment_excerpt . '...</a>';
$permalink = get_permalink($lcomment->ID)."#comment-".$lcomment->comment_ID; $output .= '<li><span class="comment-author">' . $comment_author . ':</span> <a href="' . $permalink; $output .= '" title="View the entire comment by ' . $comment_author.'">' . $comment_excerpt . '...</a>';
if ($show_type) { $output .= "<span style=?"font-size:70%?">- ".$type."</span>"; } $output .= "</li>?n";
if ($show_type) { $output .= "<span style=?"font-size:70%?">- $type</span>"; } $output .= "</li>?n";
すみません、1314 の投稿と同じ内容で多重投稿になってしまいました。No. 1314 の削除をしようとしたのですが、うまくいきませんでした。ブラウザのせいかな…。すみませんがNo. 1314 は削除しちゃってください。
このプログラムは KENT 氏の yybbs を xoops(PHP) に移植したものです - KENT -