Add classes to "edit_comment_link" and "edit_post_link", props yoavf, fixes #8945 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10426 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b78c24845a
commit
358a5e681a
@ -725,7 +725,7 @@ function edit_post_link( $link = 'Edit This', $before = '', $after = '' ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$link = '<a href="' . get_edit_post_link( $post->ID ) . '" title="' . attribute_escape( __( 'Edit post' ) ) . '">' . $link . '</a>';
|
||||
$link = '<a class="post-edit-link" href="' . get_edit_post_link( $post->ID ) . '" title="' . attribute_escape( __( 'Edit post' ) ) . '">' . $link . '</a>';
|
||||
echo $before . apply_filters( 'edit_post_link', $link, $post->ID ) . $after;
|
||||
}
|
||||
|
||||
@ -775,7 +775,7 @@ function edit_comment_link( $link = 'Edit This', $before = '', $after = '' ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$link = '<a href="' . get_edit_comment_link( $comment->comment_ID ) . '" title="' . __( 'Edit comment' ) . '">' . $link . '</a>';
|
||||
$link = '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->comment_ID ) . '" title="' . __( 'Edit comment' ) . '">' . $link . '</a>';
|
||||
echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID ) . $after;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user