XML-RPC comments API. see #7446

git-svn-id: http://svn.automattic.com/wordpress/trunk@8543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-08-04 22:29:37 +00:00
parent 377336657c
commit 1b0bfced2e
4 changed files with 390 additions and 38 deletions

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;
}