WordPress.org

Make WordPress Core

Ticket #18885: 18885.2.diff

File 18885.2.diff, 2.9 KB (added by Zeo, 7 years ago)

View Comment in the action links menu.

  • wp-admin/includes/dashboard.php

     
    674674        $comment_post_url = get_edit_post_link( $comment->comment_post_ID );
    675675        $comment_post_title = strip_tags(get_the_title( $comment->comment_post_ID ));
    676676        $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>';
    678677
    679678        $actions_string = '';
    680679        if ( current_user_can( 'edit_comment', $comment->comment_ID ) ) {
     
    684683                        'reply' => '',
    685684                        'edit' => '',
    686685                        'spam' => '',
    687                         'trash' => '', 'delete' => ''
     686                        'trash' => '', 'delete' => '',
     687                        'view' => ''
    688688                );
    689689
    690690                $del_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "delete-comment_$comment->comment_ID" ) );
     
    706706                else
    707707                        $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>';
    708708
     709                $actions['view'] = '<a class="comment-link" href="' . esc_url( get_comment_link() ) . '">' . _x( 'View Comment', 'dashboard' ) . '</a>';
     710
    709711                $actions = apply_filters( 'comment_row_actions', array_filter($actions), $comment );
    710712
    711713                $i = 0;
     
    731733                        <div class="dashboard-comment-wrap">
    732734                        <h4 class="comment-meta">
    733735                                <?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>' ); ?>
    735737                        </h4>
    736738
    737739                        <?php
     
    750752                        ?>
    751753                        <div class="dashboard-comment-wrap">
    752754                        <?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>
    754756                        <p class="comment-author"><?php comment_author_link(); ?></p>
    755757
    756758                        <?php endif; // comment_type ?>
     
    13391341                                <li><?php echo sprintf( __( '<a href="%s">Select a new header image</a>' ), esc_url( admin_url( 'themes.php?page=custom-header' ) ) ); ?></li>
    13401342                        <?php
    13411343                        endif;
    1342        
     1344
    13431345                        if ( current_theme_supports( 'widgets' ) ) : ?>
    13441346                                <li><?php echo sprintf( __( '<a href="%s">Add some widgets</a>' ), esc_url( admin_url( 'widgets.php' ) ) ); ?></li>
    13451347                        <?php