Skip to content

Commit

Permalink
Fixed: Conditional display of comment-edit anchor and meta separator.
Browse files Browse the repository at this point in the history
git-svn-id: http://thematic.googlecode.com/svn/trunk@705 25245320-ac48-0410-b4b3-eb13123354aa
  • Loading branch information
emhr@submersible.me committed Aug 8, 2010
1 parent eba5b31 commit c490f56
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions library/extensions/discussion-extensions.php
Expand Up @@ -13,14 +13,17 @@ function thematic_commentmeta($print = TRUE) {
sprintf( __('Posted %1$s at %2$s <span class="meta-sep">|</span> <a href="%3$s" title="Permalink to this comment">Permalink</a>', 'thematic' ),
get_comment_date(),
get_comment_time(),
'#comment-' . get_comment_ID() ) .
' <span class="meta-sep">|</span> ' .
sprintf('<span class="edit-link"><a class="comment-edit-link" href="%1$s" title="%2$s">%3$s</a></span>',
get_edit_comment_link(),
__( 'Edit comment' ),
__( 'Edit', 'thematic' ) ) .
'</div>' . "\n";

'#comment-' . get_comment_ID() );

if ( get_edit_comment_link() ) {
$content .= sprintf(' <span class="meta-sep">|</span><span class="edit-link"> <a class="comment-edit-link" href="%1$s" title="%2$s">%3$s</a></span>',
get_edit_comment_link(),
__( 'Edit comment' ),
__( 'Edit', 'thematic' ) );
}

$content .= '</div>' . "\n";

return $print ? print(apply_filters('thematic_commentmeta', $content)) : apply_filters('thematic_commentmeta', $content);

} // end thematic_commentmeta
Expand Down

0 comments on commit c490f56

Please sign in to comment.