Sidebar にデフォルトで表示されている Blogroll (このサイトでは Partnership に変更しています) の表示がおかしい。調べてみると get_links_list()関数が悪さをしているようだったので本体ソースを修正。 h2 タグの前に勝手に入ってくる li タグなどを削除してみました。参照ソースは、Wordpress.org/
get_links_list now inserts h2?
【対象ファイル】wp-includes/links.php 547行目から
Before
// Display the category name
echo ' <li id="linkcat-' . $cat['link_category'] . '"><h2>' . $cat['cat_name'] . "</h2>\n\t<ul>\n";
// Call get_links() with all the appropriate params
get_links($cat['link_category'],
'<li>',"</li>","\n",
bool_from_yn($cat['show_images']),
$orderby,
bool_from_yn($cat['show_description']),
bool_from_yn($cat['show_rating']),
$cat['list_limit'],
bool_from_yn($cat['show_updated']));
// Close the last category
echo "\n\t</ul>\n</li>\n";
After
// Display the category name
echo ' <h3>' . $cat['cat_name'] . "</h3>\n\t<ul>\n";
// Call get_links() with all the appropriate params
get_links($cat['link_category'],
'<li>',"</li>","\n",
bool_from_yn($cat['show_images']),
$orderby,
bool_from_yn($cat['show_description']),
bool_from_yn($cat['show_rating']),
$cat['list_limit'],
bool_from_yn($cat['show_updated']));
// Close the last category
echo "\n\t</ul>\n";