print_embed_comments_button

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

WordPress Version: 5.3

/**
 * Prints the necessary markup for the embed comments button.
 *
 * @since 4.4.0
 */
function print_embed_comments_button()
{
    if (is_404() || !(get_comments_number() || comments_open())) {
        return;
    }
    ?>
	<div class="wp-embed-comments">
		<a href="<?php 
    comments_link();
    ?>" target="_top">
			<span class="dashicons dashicons-admin-comments"></span>
			<?php 
    printf(
        /* translators: %s: Number of comments. */
        _n('%s <span class="screen-reader-text">Comment</span>', '%s <span class="screen-reader-text">Comments</span>', get_comments_number()),
        number_format_i18n(get_comments_number())
    );
    ?>
		</a>
	</div>
	<?php 
}

WordPress Version: 4.4

/**
 * Prints the necessary markup for the embed comments button.
 *
 * @since 4.4.0
 */
function print_embed_comments_button()
{
    if (is_404() || !(get_comments_number() || comments_open())) {
        return;
    }
    ?>
	<div class="wp-embed-comments">
		<a href="<?php 
    comments_link();
    ?>" target="_top">
			<span class="dashicons dashicons-admin-comments"></span>
			<?php 
    printf(_n('%s <span class="screen-reader-text">Comment</span>', '%s <span class="screen-reader-text">Comments</span>', get_comments_number()), number_format_i18n(get_comments_number()));
    ?>
		</a>
	</div>
	<?php 
}