Ticket #18885: 18885.diff
| File 18885.diff, 2.7 KB (added by , 14 years ago) |
|---|
-
wp-admin/includes/dashboard.php
670 670 $comment_post_url = get_edit_post_link( $comment->comment_post_ID ); 671 671 $comment_post_title = strip_tags(get_the_title( $comment->comment_post_ID )); 672 672 $comment_post_link = "<a href='$comment_post_url'>$comment_post_title</a>"; 673 $comment_link = '<a class="comment-link" href="' . esc_url(get_comment_link()) . '">#</a>'; 673 $comment_sep = '|'; 674 $comment_link = '<a class="comment-link" href="' . esc_url( get_comment_link() ) . '">' . _x( 'View Comment', 'dashboard' ) . '</a>'; 674 675 675 676 $actions_string = ''; 676 677 if ( current_user_can( 'edit_comment', $comment->comment_ID ) ) { … … 726 727 727 728 <div class="dashboard-comment-wrap"> 728 729 <h4 class="comment-meta"> 729 <?php printf( /* translators: 1: comment author, 2: post link, 3: notification if the comment is pending */__( 'From %1$s on %2$s%3$s' ),730 '<cite class="comment-author">' . get_comment_author_link() . '</cite>', $comment_post_link .' '.$comment_link, ' <span class="approve">' . __( '[Pending]' ) . '</span>' ); ?>730 <?php printf( /* translators: 1: comment author, 2: post link, 3: separator (|), 4: comment link, 5: notification if the comment is pending */ __( 'From %1$s on %2$s %3$s %4$s' ), 731 '<cite class="comment-author">' . get_comment_author_link() . '</cite>', $comment_post_link, $comment_sep, $comment_link, ' <span class="approve">' . __( '[Pending]' ) . '</span>' ); ?> 731 732 </h4> 732 733 733 734 <?php … … 745 746 $type = esc_html( $type ); 746 747 ?> 747 748 <div class="dashboard-comment-wrap"> 748 <?php /* translators: %1$s is type of comment, %2$s is link to the post*/ ?>749 <h4 class="comment-meta"><?php printf( _ x( '%1$s on %2$s', 'dashboard' ), "<strong>$type</strong>", $comment_post_link." ".$comment_link ); ?></h4>749 <?php /* translators: 1: comment type, 2: post link, 3: separator (|), 4: comment link */ ?> 750 <h4 class="comment-meta"><?php printf( __( '%1$s on %2$s %3$s %4$s' ), "<strong>$type</strong>", $comment_post_link, $comment_sep, $comment_link ); ?></h4> 750 751 <p class="comment-author"><?php comment_author_link(); ?></p> 751 752 752 753 <?php endif; // comment_type ?> … … 1268 1269 ?> 1269 1270 <div class="welcome-panel"> 1270 1271 <h3><?php _e( 'Welcome to WordPress!' ); ?></h3> 1271 1272 1272 1273 <a class="welcome-panel-close" href="#"><?php _e('Close'); ?></a> 1273 1274 1274 1275 <?php 1275 1276 // For now, we'll just approximate capabilities for each role. 1276 1277 ?> 1277 1278 1278 1279 <?php if ( current_user_can('switch_themes') ): ?> 1279 1280 <p>[admin placeholder]</p> 1280 1281 <?php elseif ( current_user_can('edit_others_posts') ): ?>