Ticket #24741: 24741.diff
File 24741.diff, 4.3 KB (added by , 11 years ago) |
---|
-
wp-admin/includes/class-wp-comments-list-table.php
462 462 463 463 if ( 'spam' != $the_comment_status && 'trash' != $the_comment_status ) { 464 464 $actions['edit'] = "<a href='comment.php?action=editcomment&c={$comment->comment_ID}' title='" . esc_attr__( 'Edit comment' ) . "'>". __( 'Edit' ) . '</a>'; 465 $actions['quickedit'] = '<a onclick=" commentReply.open( \''.$comment->comment_ID.'\',\''.$post->ID.'\',\'edit\' );return false;" class="vim-q" title="'.esc_attr__( 'Quick Edit' ).'" href="#">' . __( 'Quick Edit' ) . '</a>';466 $actions['reply'] = '<a onclick=" commentReply.open( \''.$comment->comment_ID.'\',\''.$post->ID.'\' );return false;" class="vim-r" title="'.esc_attr__( 'Reply to this comment' ).'" href="#">' . __( 'Reply' ) . '</a>';465 $actions['quickedit'] = '<a onclick="if(typeof commentReply != \'undefined\') commentReply.open( \''.$comment->comment_ID.'\',\''.$post->ID.'\',\'edit\' );return false;" class="vim-q" title="'.esc_attr__( 'Quick Edit' ).'" href="#">' . __( 'Quick Edit' ) . '</a>'; 466 $actions['reply'] = '<a onclick="if(typeof commentReply != \'undefined\') commentReply.open( \''.$comment->comment_ID.'\',\''.$post->ID.'\' );return false;" class="vim-r" title="'.esc_attr__( 'Reply to this comment' ).'" href="#">' . __( 'Reply' ) . '</a>'; 467 467 } 468 468 469 469 /** This filter is documented in wp-admin/includes/dashboard.php */ -
wp-admin/includes/dashboard.php
457 457 $actions['approve'] = "<a href='$approve_url' data-wp-lists='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=approved' class='vim-a' title='" . esc_attr__( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>'; 458 458 $actions['unapprove'] = "<a href='$unapprove_url' data-wp-lists='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=unapproved' class='vim-u' title='" . esc_attr__( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>'; 459 459 $actions['edit'] = "<a href='comment.php?action=editcomment&c={$comment->comment_ID}' title='" . esc_attr__('Edit comment') . "'>". __('Edit') . '</a>'; 460 $actions['reply'] = '<a onclick=" commentReply.open(\''.$comment->comment_ID.'\',\''.$comment->comment_post_ID.'\');return false;" class="vim-r hide-if-no-js" title="'.esc_attr__('Reply to this comment').'" href="#">' . __('Reply') . '</a>';460 $actions['reply'] = '<a onclick="if(typeof commentReply != \'undefined\') commentReply.open(\''.$comment->comment_ID.'\',\''.$comment->comment_post_ID.'\');return false;" class="vim-r hide-if-no-js" title="'.esc_attr__('Reply to this comment').'" href="#">' . __('Reply') . '</a>'; 461 461 $actions['spam'] = "<a href='$spam_url' data-wp-lists='delete:the-comment-list:comment-$comment->comment_ID::spam=1' class='vim-s vim-destructive' title='" . esc_attr__( 'Mark this comment as spam' ) . "'>" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '</a>'; 462 462 if ( !EMPTY_TRASH_DAYS ) 463 463 $actions['delete'] = "<a href='$delete_url' data-wp-lists='delete:the-comment-list:comment-$comment->comment_ID::trash=1' class='delete vim-d vim-destructive'>" . __('Delete Permanently') . '</a>'; -
wp-admin/includes/meta-boxes.php
593 593 594 594 wp_nonce_field( 'get-comments', 'add_comment_nonce', false ); 595 595 ?> 596 <p class="hide-if-no-js" id="add-new-comment"><a class="button" href="#commentstatusdiv" onclick=" commentReply.addcomment(<?php echo $post->ID; ?>);return false;"><?php _e('Add comment'); ?></a></p>596 <p class="hide-if-no-js" id="add-new-comment"><a class="button" href="#commentstatusdiv" onclick="if(typeof commentReply != 'undefined') commentReply.addcomment(<?php echo $post->ID; ?>);return false;"><?php _e('Add comment'); ?></a></p> 597 597 <?php 598 598 599 599 $total = get_comments( array( 'post_id' => $post->ID, 'number' => 1, 'count' => true ) );