WordPress.org

Make WordPress Core

Ticket #18885: 18885.diff

File 18885.diff, 2.7 KB (added by zeo, 3 years ago)
  • wp-admin/includes/dashboard.php

     
    670670        $comment_post_url = get_edit_post_link( $comment->comment_post_ID ); 
    671671        $comment_post_title = strip_tags(get_the_title( $comment->comment_post_ID )); 
    672672        $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>'; 
    674675 
    675676        $actions_string = ''; 
    676677        if ( current_user_can( 'edit_comment', $comment->comment_ID ) ) { 
     
    726727 
    727728                        <div class="dashboard-comment-wrap"> 
    728729                        <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>' ); ?> 
    731732                        </h4> 
    732733 
    733734                        <?php 
     
    745746                                $type = esc_html( $type ); 
    746747                        ?> 
    747748                        <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> 
    750751                        <p class="comment-author"><?php comment_author_link(); ?></p> 
    751752 
    752753                        <?php endif; // comment_type ?> 
     
    12681269        ?> 
    12691270        <div class="welcome-panel"> 
    12701271                <h3><?php _e( 'Welcome to WordPress!' ); ?></h3> 
    1271                  
     1272 
    12721273                <a class="welcome-panel-close" href="#"><?php _e('Close'); ?></a> 
    1273                  
     1274 
    12741275                <?php 
    12751276                // For now, we'll just approximate capabilities for each role. 
    12761277                ?> 
    1277                  
     1278 
    12781279                <?php if ( current_user_can('switch_themes') ): ?> 
    12791280                        <p>[admin placeholder]</p> 
    12801281                <?php elseif ( current_user_can('edit_others_posts') ): ?>