Changeset 32516
- Timestamp:
- 05/19/2015 08:45:36 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r32175 r32516 391 391 $the_comment_status = wp_get_comment_status( $comment->comment_ID ); 392 392 393 if ( $this->user_can ) {394 $del_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "delete-comment_$comment->comment_ID" ) );395 $approve_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "approve-comment_$comment->comment_ID" ) );396 397 $url = "comment.php?c=$comment->comment_ID";398 399 $approve_url = esc_url( $url . "&action=approvecomment&$approve_nonce" );400 $unapprove_url = esc_url( $url . "&action=unapprovecomment&$approve_nonce" );401 $spam_url = esc_url( $url . "&action=spamcomment&$del_nonce" );402 $unspam_url = esc_url( $url . "&action=unspamcomment&$del_nonce" );403 $trash_url = esc_url( $url . "&action=trashcomment&$del_nonce" );404 $untrash_url = esc_url( $url . "&action=untrashcomment&$del_nonce" );405 $delete_url = esc_url( $url . "&action=deletecomment&$del_nonce" );406 }407 408 393 echo '<div class="comment-author">'; 409 394 $this->column_author( $comment ); … … 442 427 443 428 if ( $this->user_can ) { 429 $del_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "delete-comment_$comment->comment_ID" ) ); 430 $approve_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "approve-comment_$comment->comment_ID" ) ); 431 432 $url = "comment.php?c=$comment->comment_ID"; 433 434 $approve_url = esc_url( $url . "&action=approvecomment&$approve_nonce" ); 435 $unapprove_url = esc_url( $url . "&action=unapprovecomment&$approve_nonce" ); 436 $spam_url = esc_url( $url . "&action=spamcomment&$del_nonce" ); 437 $unspam_url = esc_url( $url . "&action=unspamcomment&$del_nonce" ); 438 $trash_url = esc_url( $url . "&action=trashcomment&$del_nonce" ); 439 $untrash_url = esc_url( $url . "&action=untrashcomment&$del_nonce" ); 440 $delete_url = esc_url( $url . "&action=deletecomment&$del_nonce" ); 441 444 442 // Preorder it: Approve | Reply | Quick Edit | Edit | Spam | Trash. 445 443 $actions = array(
Note: See TracChangeset
for help on using the changeset viewer.