comment_guid

The timeline below displays how wordpress function comment_guid has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Displays the feed GUID for the current comment.
 *
 * @since 2.5.0
 *
 * @param int|WP_Comment $comment_id Optional comment object or ID. Defaults to global comment object.
 */
function comment_guid($comment_id = null)
{
    echo esc_url(get_comment_guid($comment_id));
}

WordPress Version: 5.5

/**
 * Display the feed GUID for the current comment.
 *
 * @since 2.5.0
 *
 * @param int|WP_Comment $comment_id Optional comment object or ID. Defaults to global comment object.
 */
function comment_guid($comment_id = null)
{
    echo esc_url(get_comment_guid($comment_id));
}

WordPress Version: 4.4

/**
 * Display the feed GUID for the current comment.
 *
 * @since 2.5.0
 *
 * @param int|WP_Comment $comment_id Optional comment object or id. Defaults to global comment object.
 */
function comment_guid($comment_id = null)
{
    echo esc_url(get_comment_guid($comment_id));
}

WordPress Version: 3.9

/**
 * Display the feed GUID for the current comment.
 *
 * @since 2.5.0
 *
 * @param int|object $comment_id Optional comment object or id. Defaults to global comment object.
 */
function comment_guid($comment_id = null)
{
    echo esc_url(get_comment_guid($comment_id));
}

WordPress Version: 3.7

/**
 * Display the feed GUID for the current comment.
 *
 * @package WordPress
 * @subpackage Feed
 * @since 2.5.0
 *
 * @param int|object $comment_id Optional comment object or id. Defaults to global comment object.
 */
function comment_guid($comment_id = null)
{
    echo esc_url(get_comment_guid($comment_id));
}