comment_footer_die

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

WordPress Version: 6.1

/**
 * Displays error message at bottom of comments.
 *
 * @param string $msg Error Message. Assumed to contain HTML and be sanitized.
 */
function comment_footer_die($msg)
{
    echo "<div class='wrap'><p>{$msg}</p></div>";
    require_once ABSPATH . 'wp-admin/admin-footer.php';
    die;
}

WordPress Version: 5.4

/**
 * Display error message at bottom of comments.
 *
 * @param string $msg Error Message. Assumed to contain HTML and be sanitized.
 */
function comment_footer_die($msg)
{
    echo "<div class='wrap'><p>{$msg}</p></div>";
    require_once ABSPATH . 'wp-admin/admin-footer.php';
    die;
}

WordPress Version: 3.7

/**
 * Display error message at bottom of comments.
 *
 * @param string $msg Error Message. Assumed to contain HTML and be sanitized.
 */
function comment_footer_die($msg)
{
    echo "<div class='wrap'><p>{$msg}</p></div>";
    include ABSPATH . 'wp-admin/admin-footer.php';
    die;
}