diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php
index 1b288786cd..1429100702 100644
a
|
b
|
class WP_Comments_List_Table extends WP_List_Table { |
708 | 708 | if ( 'approved' === $the_comment_status ) { |
709 | 709 | $actions['unapprove'] = sprintf( |
710 | 710 | '<a href="%s" data-wp-lists="%s" class="vim-u vim-destructive aria-button-if-js" aria-label="%s">%s</a>', |
711 | | $unapprove_url, |
| 711 | esc_url( $unapprove_url ), |
712 | 712 | "delete:the-comment-list:comment-{$comment->comment_ID}:e7e7d3:action=dim-comment&new=unapproved", |
713 | 713 | esc_attr__( 'Unapprove this comment' ), |
714 | 714 | __( 'Unapprove' ) |
… |
… |
class WP_Comments_List_Table extends WP_List_Table { |
716 | 716 | } elseif ( 'unapproved' === $the_comment_status ) { |
717 | 717 | $actions['approve'] = sprintf( |
718 | 718 | '<a href="%s" data-wp-lists="%s" class="vim-a vim-destructive aria-button-if-js" aria-label="%s">%s</a>', |
719 | | $approve_url, |
| 719 | esc_url( $approve_url ), |
720 | 720 | "delete:the-comment-list:comment-{$comment->comment_ID}:e7e7d3:action=dim-comment&new=approved", |
721 | 721 | esc_attr__( 'Approve this comment' ), |
722 | 722 | __( 'Approve' ) |
… |
… |
class WP_Comments_List_Table extends WP_List_Table { |
725 | 725 | } else { |
726 | 726 | $actions['approve'] = sprintf( |
727 | 727 | '<a href="%s" data-wp-lists="%s" class="vim-a aria-button-if-js" aria-label="%s">%s</a>', |
728 | | $approve_url, |
| 728 | esc_url( $approve_url ), |
729 | 729 | "dim:the-comment-list:comment-{$comment->comment_ID}:unapproved:e7e7d3:e7e7d3:new=approved", |
730 | 730 | esc_attr__( 'Approve this comment' ), |
731 | 731 | __( 'Approve' ) |
… |
… |
class WP_Comments_List_Table extends WP_List_Table { |
733 | 733 | |
734 | 734 | $actions['unapprove'] = sprintf( |
735 | 735 | '<a href="%s" data-wp-lists="%s" class="vim-u aria-button-if-js" aria-label="%s">%s</a>', |
736 | | $unapprove_url, |
| 736 | esc_url( $unapprove_url ), |
737 | 737 | "dim:the-comment-list:comment-{$comment->comment_ID}:unapproved:e7e7d3:e7e7d3:new=unapproved", |
738 | 738 | esc_attr__( 'Unapprove this comment' ), |
739 | 739 | __( 'Unapprove' ) |
… |
… |
class WP_Comments_List_Table extends WP_List_Table { |
743 | 743 | if ( 'spam' !== $the_comment_status ) { |
744 | 744 | $actions['spam'] = sprintf( |
745 | 745 | '<a href="%s" data-wp-lists="%s" class="vim-s vim-destructive aria-button-if-js" aria-label="%s">%s</a>', |
746 | | $spam_url, |
| 746 | esc_url( $spam_url ), |
747 | 747 | "delete:the-comment-list:comment-{$comment->comment_ID}::spam=1", |
748 | 748 | esc_attr__( 'Mark this comment as spam' ), |
749 | 749 | /* translators: "Mark as spam" link. */ |
… |
… |
class WP_Comments_List_Table extends WP_List_Table { |
752 | 752 | } elseif ( 'spam' === $the_comment_status ) { |
753 | 753 | $actions['unspam'] = sprintf( |
754 | 754 | '<a href="%s" data-wp-lists="%s" class="vim-z vim-destructive aria-button-if-js" aria-label="%s">%s</a>', |
755 | | $unspam_url, |
| 755 | esc_url( $unspam_url ), |
756 | 756 | "delete:the-comment-list:comment-{$comment->comment_ID}:66cc66:unspam=1", |
757 | 757 | esc_attr__( 'Restore this comment from the spam' ), |
758 | 758 | _x( 'Not Spam', 'comment' ) |
… |
… |
class WP_Comments_List_Table extends WP_List_Table { |
762 | 762 | if ( 'trash' === $the_comment_status ) { |
763 | 763 | $actions['untrash'] = sprintf( |
764 | 764 | '<a href="%s" data-wp-lists="%s" class="vim-z vim-destructive aria-button-if-js" aria-label="%s">%s</a>', |
765 | | $untrash_url, |
| 765 | esc_url( $untrash_url ), |
766 | 766 | "delete:the-comment-list:comment-{$comment->comment_ID}:66cc66:untrash=1", |
767 | 767 | esc_attr__( 'Restore this comment from the Trash' ), |
768 | 768 | __( 'Restore' ) |
… |
… |
class WP_Comments_List_Table extends WP_List_Table { |
772 | 772 | if ( 'spam' === $the_comment_status || 'trash' === $the_comment_status || ! EMPTY_TRASH_DAYS ) { |
773 | 773 | $actions['delete'] = sprintf( |
774 | 774 | '<a href="%s" data-wp-lists="%s" class="delete vim-d vim-destructive aria-button-if-js" aria-label="%s">%s</a>', |
775 | | $delete_url, |
| 775 | esc_url( $delete_url ), |
776 | 776 | "delete:the-comment-list:comment-{$comment->comment_ID}::delete=1", |
777 | 777 | esc_attr__( 'Delete this comment permanently' ), |
778 | 778 | __( 'Delete Permanently' ) |
… |
… |
class WP_Comments_List_Table extends WP_List_Table { |
780 | 780 | } else { |
781 | 781 | $actions['trash'] = sprintf( |
782 | 782 | '<a href="%s" data-wp-lists="%s" class="delete vim-d vim-destructive aria-button-if-js" aria-label="%s">%s</a>', |
783 | | $trash_url, |
| 783 | esc_url( $trash_url ), |
784 | 784 | "delete:the-comment-list:comment-{$comment->comment_ID}::trash=1", |
785 | 785 | esc_attr__( 'Move this comment to the Trash' ), |
786 | 786 | _x( 'Trash', 'verb' ) |