I had some custom code to remove "trackbacks are closed but you can leave a comment" that appears at the end of post. Updating to new Thematic 1.0+ has broken it, and it now ends with
"This entry was posted in [category]. Bookmark the permalink. . Bookmark the permalink. Post a comment."
And when I am logged in, it gives me 2 edit links.
Here is my code:
// OVERRIDING WHAT APPEARS IN THE POST FOOTER FOR CLOSED COMMENTS TRACKBACKS ETC
function childtheme_override_postfooter_postconnect() {
$postconnect = __('. Bookmark the ', 'thematic') . '<a href="' . apply_filters('the_permalink', get_permalink()) . '" title="' . __('Permalink to ', 'thematic') . the_title_attribute('echo=0') . '">';
$postconnect .= __('permalink', 'thematic') . '</a>.';
if ((comments_open()) && (pings_open())) { /* Comments are open */
$postconnect .= ' <a class="comment-link" href="#respond" title ="' . __('Post a comment', 'thematic') . '">' . __('Post a comment', 'thematic') . '</a>';
$postconnect .= __(' or leave a trackback: ', 'thematic');
$postconnect .= '<a class="trackback-link" href="' . get_trackback_url() . '" title ="' . __('Trackback URL for your post', 'thematic') . '" rel="trackback">' . __('Trackback URL', 'thematic') . '</a>.';
} elseif (!(comments_open()) && (pings_open())) { /* Only trackbacks are open */
$postconnect .= __(' Comments are closed, but you can leave a trackback: ', 'thematic');
$postconnect .= '<a class="trackback-link" href="' . get_trackback_url() . '" title ="' . __('Trackback URL for your post', 'thematic') . '" rel="trackback">' . __('Trackback URL', 'thematic') . '</a>.';
} elseif ((comments_open()) && !(pings_open())) { /* Only comments open */
/* CHANGED FROM THEMATIC ORIGINAL TO REMOVE Trackbacks are closed, but you can */
$postconnect .= __(' ', 'thematic');
$postconnect .= '<a class="comment-link" href="#respond" title ="' . __('Post a comment', 'thematic') . '">' . __('Post a comment', 'thematic') . '</a>.';
} elseif (!(comments_open()) && !(pings_open())) { /* Comments and trackbacks closed */
/* CHANGED FROM THEMATIC ORIGINAL TO REMOVE TEXT both trackbacks and comments are closed */
$postconnect .= __(' ', 'thematic');
}
// Display edit link on single posts
if (current_user_can('edit_posts')) {
$postconnect .= ' ' . thematic_postfooter_posteditlink();
}
return apply_filters('childtheme_override_postfooter_postconnect',$postconnect);
}
I know this is quite clumsy, and obviously since it's broken in the new version, this was the wrong way to do it. As the trackbacks are closed for this particular site, I don't want a mention of trackbacks in the post footer.
Anyone else run into this, or have any insights? Thanks.