XML-RPC comments API. see #7446

git-svn-id: https://develop.svn.wordpress.org/trunk@8543 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-08-04 22:29:37 +00:00
parent c0eb754f82
commit b370c7862c
4 changed files with 390 additions and 38 deletions
+3 -2
View File
@@ -320,10 +320,11 @@ function comment_ID() {
* @since 1.5
* @uses $comment
*
* @param object|string|int $comment Comment to retrieve.
* @return string The permalink to the current comment
*/
function get_comment_link() {
global $comment;
function get_comment_link($comment = null) {
$comment = get_comment($comment);
return get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment->comment_ID;
}