Make WordPress Core


Ignore:
Timestamp:
08/04/2008 10:29:37 PM (18 years ago)
Author:
ryan
Message:

XML-RPC comments API. see #7446

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r8497 r8543  
    321321 * @uses $comment
    322322 *
     323 * @param object|string|int $comment Comment to retrieve.
    323324 * @return string The permalink to the current comment
    324325 */
    325 function get_comment_link() {
    326     global $comment;
     326function get_comment_link($comment = null) {
     327    $comment = get_comment($comment);
    327328    return get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment->comment_ID;
    328329}
Note: See TracChangeset for help on using the changeset viewer.