mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user