Ticket #18885: 18885.2.diff
| File 18885.2.diff, 2.9 KB (added by , 14 years ago) |
|---|
-
wp-admin/includes/dashboard.php
674 674 $comment_post_url = get_edit_post_link( $comment->comment_post_ID ); 675 675 $comment_post_title = strip_tags(get_the_title( $comment->comment_post_ID )); 676 676 $comment_post_link = "<a href='$comment_post_url'>$comment_post_title</a>"; 677 $comment_link = '<a class="comment-link" href="' . esc_url(get_comment_link()) . '">#</a>';678 677 679 678 $actions_string = ''; 680 679 if ( current_user_can( 'edit_comment', $comment->comment_ID ) ) { … … 684 683 'reply' => '', 685 684 'edit' => '', 686 685 'spam' => '', 687 'trash' => '', 'delete' => '' 686 'trash' => '', 'delete' => '', 687 'view' => '' 688 688 ); 689 689 690 690 $del_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "delete-comment_$comment->comment_ID" ) ); … … 706 706 else 707 707 $actions['trash'] = "<a href='$trash_url' class='delete:the-comment-list:comment-$comment->comment_ID::trash=1 delete vim-d vim-destructive' title='" . esc_attr__( 'Move this comment to the trash' ) . "'>" . _x('Trash', 'verb') . '</a>'; 708 708 709 $actions['view'] = '<a class="comment-link" href="' . esc_url( get_comment_link() ) . '">' . _x( 'View Comment', 'dashboard' ) . '</a>'; 710 709 711 $actions = apply_filters( 'comment_row_actions', array_filter($actions), $comment ); 710 712 711 713 $i = 0; … … 731 733 <div class="dashboard-comment-wrap"> 732 734 <h4 class="comment-meta"> 733 735 <?php printf( /* translators: 1: comment author, 2: post link, 3: notification if the comment is pending */__( 'From %1$s on %2$s%3$s' ), 734 '<cite class="comment-author">' . get_comment_author_link() . '</cite>', $comment_post_link .' '.$comment_link, ' <span class="approve">' . __( '[Pending]' ) . '</span>' ); ?>736 '<cite class="comment-author">' . get_comment_author_link() . '</cite>', $comment_post_link, ' <span class="approve">' . __( '[Pending]' ) . '</span>' ); ?> 735 737 </h4> 736 738 737 739 <?php … … 750 752 ?> 751 753 <div class="dashboard-comment-wrap"> 752 754 <?php /* translators: %1$s is type of comment, %2$s is link to the post */ ?> 753 <h4 class="comment-meta"><?php printf( _x( '%1$s on %2$s', 'dashboard' ), "<strong>$type</strong>", $comment_post_link ." ".$comment_link); ?></h4>755 <h4 class="comment-meta"><?php printf( _x( '%1$s on %2$s', 'dashboard' ), "<strong>$type</strong>", $comment_post_link ); ?></h4> 754 756 <p class="comment-author"><?php comment_author_link(); ?></p> 755 757 756 758 <?php endif; // comment_type ?> … … 1339 1341 <li><?php echo sprintf( __( '<a href="%s">Select a new header image</a>' ), esc_url( admin_url( 'themes.php?page=custom-header' ) ) ); ?></li> 1340 1342 <?php 1341 1343 endif; 1342 1344 1343 1345 if ( current_theme_supports( 'widgets' ) ) : ?> 1344 1346 <li><?php echo sprintf( __( '<a href="%s">Add some widgets</a>' ), esc_url( admin_url( 'widgets.php' ) ) ); ?></li> 1345 1347 <?php