Skip to content

Commit

Permalink
reply-to link fix
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed Apr 22, 2009
1 parent 9e765e2 commit 3be04d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/omb/plugins/wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function wp_list_comments() {
$cctime = date( "g:i A" , strtotime($pp->created) );
$ccdate = date( get_settings('date_format'), strtotime($pp->created) );
$ccurl = $request->url_for(array('resource'=>'posts','id'=>$pp->id));
$ccrurl = $request->url_for(array('resource'=>'posts','id'=>$the_post->id));
$comments .= ' <li class="comment byuser comment-author-'.$cc->nickname.' even thread-even depth-1" id="comment-'.$pp->id.'">';
$comments .= '<img alt=\'image\' src=\''.$cc->avatar.'\' class=\'avatar avatar-32\' height=\'32\' width=\'32\' />';
$comments .= '<h4>';
Expand All @@ -58,7 +59,7 @@ function wp_list_comments() {



$comments .= '<a href="'.$ccurl.'">Permalink</a> | <a rel=\'nofollow\' class=\'comment-reply-link\' href=\''.$ccurl.'\'>Reply</a>';
$comments .= '<a href="'.$ccurl.'">Permalink</a> | <a rel=\'nofollow\' class=\'comment-reply-link\' href=\''.$ccrurl.'\'>Reply</a>';
if (get_profile_id() == $pp->profile_id) {
$comments .= ' | <a href="'.get_edit_post_link( $pp ).'" class="post-edit-link" rel="'. $pp->id.'">Edit</a>';
$comments .= ' | <a href="'.get_edit_post_link( $pp, 'remove' ).'" class="post-remove-link" rel="'. $pp->id.'">Remove</a>';
Expand Down

0 comments on commit 3be04d2

Please sign in to comment.