WordPress.org

Make WordPress Core

Ticket #33149: 33149.3.diff

File 33149.3.diff, 5.2 KB (added by obenland, 5 years ago)
  • src/wp-admin/css/list-tables.css

     
    1515        font-size: 12px;
    1616}
    1717
    18 .column-response .post-com-count .screen-reader-text {
    19         position: static;
    20         width: auto;
    21         height: auto;
    22         margin: 0;
    23 }
    24 
    25 .column-response .post-com-count [aria-hidden="true"] {
    26         display: none;
    27 }
    28 
    2918.post-com-count-wrapper strong {
    3019        font-weight: 400;
    3120}
    3221
    33 .column-response .post-com-count.post-com-count-pending {
    34         color: #bb2a2a;
    35 }
    36 
    3722.comments-view-item-link {
    3823        display: inline-block;
    3924        clear: both;
    4025}
    4126
     27.column-response .post-com-count-wrapper,
    4228.column-comments .post-com-count-wrapper {
    4329        white-space: nowrap;
    4430        word-wrap: normal;
    4531}
    4632
    4733/* comments bubble common */
     34.column-response .post-com-count,
    4835.column-comments .post-com-count {
    4936        display: inline-block;
    5037        vertical-align: top;
    5138}
    5239
    53 .column-response .post-com-count {
    54         display: block;
    55 }
    56 
    5740/* comments bubble approved */
     41.column-response .post-com-count-no-comments,
     42.column-response .post-com-count-approved,
    5843.column-comments .post-com-count-no-comments,
    5944.column-comments .post-com-count-approved {
    6045        margin-top: 5px;
    6146}
    6247
     48.column-response .comment-count-no-comments,
     49.column-response .comment-count-approved,
    6350.column-comments .comment-count-no-comments,
    6451.column-comments .comment-count-approved {
    6552        -webkit-box-sizing: border-box;
     
    7865        text-align: center;
    7966}
    8067
     68.ie8 .column-response .comment-count-no-comments,
     69.ie8 .column-response .comment-count-approved,
    8170.ie8 .column-comments .comment-count-no-comments,
    8271.ie8 .column-comments .comment-count-approved {
    8372        min-width: 0;
    8473}
    8574
     75.column-response .post-com-count-no-comments:after,
     76.column-response .post-com-count-approved:after,
    8677.column-comments .post-com-count-no-comments:after,
    8778.column-comments .post-com-count-approved:after {
    8879        content: "";
     
    9485        border-right: 5px solid transparent;
    9586}
    9687
     88.column-response .post-com-count-approved:hover .comment-count-approved,
     89.column-response .post-com-count-approved:focus .comment-count-approved,
    9790.column-comments .post-com-count-approved:hover .comment-count-approved,
    9891.column-comments .post-com-count-approved:focus .comment-count-approved {
    9992        background: #0073aa;
    10093}
    10194
     95.column-response .post-com-count-approved:hover:after,
     96.column-response .post-com-count-approved:focus:after,
    10297.column-comments .post-com-count-approved:hover:after,
    10398.column-comments .post-com-count-approved:focus:after {
    10499        border-top-color: #0073aa;
    105100}
    106101
    107102/* comments bubble pending */
     103.column-response .post-com-count-pending,
    108104.column-comments .post-com-count-pending {
    109105        position: relative;
    110106        left: -3px;
     
    208204        vertical-align: text-top;
    209205}
    210206
    211 #the-comment-list .attachment-80x60 {
    212         padding: 4px 8px;
    213 }
    214 
    215207#the-comment-list tr.undo,
    216208#the-comment-list div.undo {
    217209        background-color: #f4f4f4;
     
    18541846                margin: 0;
    18551847        }
    18561848
     1849        .column-response .post-com-count-no-comments:after,
     1850        .column-response .post-com-count-approved:after,
    18571851        .column-comments .post-com-count-no-comments:after,
    18581852        .column-comments .post-com-count-approved:after {
    18591853                content: none;
    18601854        }
    18611855
     1856        .column-response .post-com-count [aria-hidden="true"],
    18621857        .column-comments .post-com-count [aria-hidden="true"] {
    18631858                display: none;
    18641859        }
    18651860
     1861        .column-response .post-com-count-wrapper,
    18661862        .column-comments .post-com-count-wrapper {
    18671863                white-space: normal;
    18681864        }
    18691865
     1866        .column-response .post-com-count-wrapper > a,
    18701867        .column-comments .post-com-count-wrapper > a {
    18711868                display: block;
    18721869        }
    18731870
     1871        .column-response .post-com-count-no-comments,
     1872        .column-response .post-com-count-approved,
    18741873        .column-comments .post-com-count-no-comments,
    18751874        .column-comments .post-com-count-approved {
    18761875                margin-top: 0;
    18771876                margin-right: 0.5em;
    18781877        }
    18791878
     1879        .column-response .post-com-count-pending,
    18801880        .column-comments .post-com-count-pending {
    18811881                position: static;
    18821882                height: auto;
     
    18921892                text-align: left;
    18931893        }
    18941894
     1895        .column-response .post-com-count-pending:hover,
    18951896        .column-comments .post-com-count-pending:hover {
    18961897                color: #dc3232;
    18971898        }
  • src/wp-admin/includes/class-wp-comments-list-table.php

     
    687687                }
    688688
    689689                echo '<div class="response-links">';
    690                 echo $post_link;
    691                 $post_type_object = get_post_type_object( $post->post_type );
    692                 echo "<a href='" . get_permalink( $post->ID ) . "' class='comments-view-item-link'>" . $post_type_object->labels->view_item . '</a>';
    693690                if ( 'attachment' == $post->post_type && ( $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) ) {
    694691                        echo $thumb;
    695692                }
    696                 echo '</div>';
     693                echo $post_link;
     694                $post_type_object = get_post_type_object( $post->post_type );
     695                echo "<a href='" . get_permalink( $post->ID ) . "' class='comments-view-item-link'>" . $post_type_object->labels->view_item . '</a>';
    697696                echo '<span class="post-com-count-wrapper">';
    698697                $this->comments_bubble( $post->ID, $pending_comments );
    699698                echo '</span> ';
     699                echo '</div>';
    700700        }
    701701
    702702        /**