wp_comment_trashnotice

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

WordPress Version: 6.1

/**
 * Outputs 'undo move to Trash' text for comments.
 *
 * @since 2.9.0
 */
function wp_comment_trashnotice()
{
    ?>
<div class="hidden" id="trash-undo-holder">
	<div class="trash-undo-inside">
		<?php 
    /* translators: %s: Comment author, filled by Ajax. */
    printf(__('Comment by %s moved to the Trash.'), '<strong></strong>');
    ?>
		<span class="undo untrash"><a href="#"><?php 
    _e('Undo');
    ?></a></span>
	</div>
</div>
<div class="hidden" id="spam-undo-holder">
	<div class="spam-undo-inside">
		<?php 
    /* translators: %s: Comment author, filled by Ajax. */
    printf(__('Comment by %s marked as spam.'), '<strong></strong>');
    ?>
		<span class="undo unspam"><a href="#"><?php 
    _e('Undo');
    ?></a></span>
	</div>
</div>
	<?php 
}

WordPress Version: 5.5

/**
 * Output 'undo move to Trash' text for comments
 *
 * @since 2.9.0
 */
function wp_comment_trashnotice()
{
    ?>
<div class="hidden" id="trash-undo-holder">
	<div class="trash-undo-inside">
		<?php 
    /* translators: %s: Comment author, filled by Ajax. */
    printf(__('Comment by %s moved to the Trash.'), '<strong></strong>');
    ?>
		<span class="undo untrash"><a href="#"><?php 
    _e('Undo');
    ?></a></span>
	</div>
</div>
<div class="hidden" id="spam-undo-holder">
	<div class="spam-undo-inside">
		<?php 
    /* translators: %s: Comment author, filled by Ajax. */
    printf(__('Comment by %s marked as spam.'), '<strong></strong>');
    ?>
		<span class="undo unspam"><a href="#"><?php 
    _e('Undo');
    ?></a></span>
	</div>
</div>
	<?php 
}

WordPress Version: 5.4

/**
 * Output 'undo move to Trash' text for comments
 *
 * @since 2.9.0
 */
function wp_comment_trashnotice()
{
    ?>
<div class="hidden" id="trash-undo-holder">
	<div class="trash-undo-inside">
		<?php 
    /* translators: %s: Comment author, filled by AJAX. */
    printf(__('Comment by %s moved to the Trash.'), '<strong></strong>');
    ?>
		<span class="undo untrash"><a href="#"><?php 
    _e('Undo');
    ?></a></span>
	</div>
</div>
<div class="hidden" id="spam-undo-holder">
	<div class="spam-undo-inside">
		<?php 
    /* translators: %s: Comment author, filled by AJAX. */
    printf(__('Comment by %s marked as spam.'), '<strong></strong>');
    ?>
		<span class="undo unspam"><a href="#"><?php 
    _e('Undo');
    ?></a></span>
	</div>
</div>
	<?php 
}

WordPress Version: 5.3

/**
 * Output 'undo move to trash' text for comments
 *
 * @since 2.9.0
 */
function wp_comment_trashnotice()
{
    ?>
<div class="hidden" id="trash-undo-holder">
	<div class="trash-undo-inside">
		<?php 
    /* translators: %s: Comment author, filled by AJAX. */
    printf(__('Comment by %s moved to the trash.'), '<strong></strong>');
    ?>
		<span class="undo untrash"><a href="#"><?php 
    _e('Undo');
    ?></a></span>
	</div>
</div>
<div class="hidden" id="spam-undo-holder">
	<div class="spam-undo-inside">
		<?php 
    /* translators: %s: Comment author, filled by AJAX. */
    printf(__('Comment by %s marked as spam.'), '<strong></strong>');
    ?>
		<span class="undo unspam"><a href="#"><?php 
    _e('Undo');
    ?></a></span>
	</div>
</div>
	<?php 
}

WordPress Version: 5.1

/**
 * Output 'undo move to trash' text for comments
 *
 * @since 2.9.0
 */
function wp_comment_trashnotice()
{
    ?>
<div class="hidden" id="trash-undo-holder">
	<div class="trash-undo-inside"><?php 
    printf(__('Comment by %s moved to the trash.'), '<strong></strong>');
    ?> <span class="undo untrash"><a href="#"><?php 
    _e('Undo');
    ?></a></span></div>
</div>
<div class="hidden" id="spam-undo-holder">
	<div class="spam-undo-inside"><?php 
    printf(__('Comment by %s marked as spam.'), '<strong></strong>');
    ?> <span class="undo unspam"><a href="#"><?php 
    _e('Undo');
    ?></a></span></div>
</div>
	<?php 
}

WordPress Version: 3.7

/**
 * Output 'undo move to trash' text for comments
 *
 * @since 2.9.0
 */
function wp_comment_trashnotice()
{
    ?>
<div class="hidden" id="trash-undo-holder">
	<div class="trash-undo-inside"><?php 
    printf(__('Comment by %s moved to the trash.'), '<strong></strong>');
    ?> <span class="undo untrash"><a href="#"><?php 
    _e('Undo');
    ?></a></span></div>
</div>
<div class="hidden" id="spam-undo-holder">
	<div class="spam-undo-inside"><?php 
    printf(__('Comment by %s marked as spam.'), '<strong></strong>');
    ?> <span class="undo unspam"><a href="#"><?php 
    _e('Undo');
    ?></a></span></div>
</div>
<?php 
}