WordPress.org

Make WordPress Core

Ticket #44360: 44360.wp-admin_comment.diff

File 44360.wp-admin_comment.diff, 875 bytes (added by priyankkpatel, 6 months ago)

Patch for wp-admin/comment.php

  • src/wp-admin/comment.php

     src/wp-admin/comment.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/wp-admin/comment.php b/src/wp-admin/comment.php
    index 0b405c575b..d75f382dd7 100644
    a b switch ( $action ) { 
    261261                $noredir = isset( $_REQUEST['noredir'] );
    262262
    263263                if ( ! $comment = get_comment( $comment_id ) ) {
    264                         comment_footer_die( __( 'Invalid comment ID.' ) . sprintf( ' <a href="%s">' . __( 'Go back' ) . '</a>.', 'edit-comments.php' ) );
     264                        comment_footer_die( __( 'Invalid comment ID.' ) . sprintf( /* translators: %s: link to page edit-comments.php */ ' <a href="%s">' . __( 'Go back' ) . '</a>.', 'edit-comments.php' ) );
    265265                }
    266266                if ( ! current_user_can( 'edit_comment', $comment->comment_ID ) ) {
    267267                        comment_footer_die( __( 'Sorry, you are not allowed to edit comments on this post.' ) );