Ticket #33149: 33149.3.diff
File 33149.3.diff, 5.2 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/list-tables.css
15 15 font-size: 12px; 16 16 } 17 17 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 29 18 .post-com-count-wrapper strong { 30 19 font-weight: 400; 31 20 } 32 21 33 .column-response .post-com-count.post-com-count-pending {34 color: #bb2a2a;35 }36 37 22 .comments-view-item-link { 38 23 display: inline-block; 39 24 clear: both; 40 25 } 41 26 27 .column-response .post-com-count-wrapper, 42 28 .column-comments .post-com-count-wrapper { 43 29 white-space: nowrap; 44 30 word-wrap: normal; 45 31 } 46 32 47 33 /* comments bubble common */ 34 .column-response .post-com-count, 48 35 .column-comments .post-com-count { 49 36 display: inline-block; 50 37 vertical-align: top; 51 38 } 52 39 53 .column-response .post-com-count {54 display: block;55 }56 57 40 /* comments bubble approved */ 41 .column-response .post-com-count-no-comments, 42 .column-response .post-com-count-approved, 58 43 .column-comments .post-com-count-no-comments, 59 44 .column-comments .post-com-count-approved { 60 45 margin-top: 5px; 61 46 } 62 47 48 .column-response .comment-count-no-comments, 49 .column-response .comment-count-approved, 63 50 .column-comments .comment-count-no-comments, 64 51 .column-comments .comment-count-approved { 65 52 -webkit-box-sizing: border-box; … … 78 65 text-align: center; 79 66 } 80 67 68 .ie8 .column-response .comment-count-no-comments, 69 .ie8 .column-response .comment-count-approved, 81 70 .ie8 .column-comments .comment-count-no-comments, 82 71 .ie8 .column-comments .comment-count-approved { 83 72 min-width: 0; 84 73 } 85 74 75 .column-response .post-com-count-no-comments:after, 76 .column-response .post-com-count-approved:after, 86 77 .column-comments .post-com-count-no-comments:after, 87 78 .column-comments .post-com-count-approved:after { 88 79 content: ""; … … 94 85 border-right: 5px solid transparent; 95 86 } 96 87 88 .column-response .post-com-count-approved:hover .comment-count-approved, 89 .column-response .post-com-count-approved:focus .comment-count-approved, 97 90 .column-comments .post-com-count-approved:hover .comment-count-approved, 98 91 .column-comments .post-com-count-approved:focus .comment-count-approved { 99 92 background: #0073aa; 100 93 } 101 94 95 .column-response .post-com-count-approved:hover:after, 96 .column-response .post-com-count-approved:focus:after, 102 97 .column-comments .post-com-count-approved:hover:after, 103 98 .column-comments .post-com-count-approved:focus:after { 104 99 border-top-color: #0073aa; 105 100 } 106 101 107 102 /* comments bubble pending */ 103 .column-response .post-com-count-pending, 108 104 .column-comments .post-com-count-pending { 109 105 position: relative; 110 106 left: -3px; … … 208 204 vertical-align: text-top; 209 205 } 210 206 211 #the-comment-list .attachment-80x60 {212 padding: 4px 8px;213 }214 215 207 #the-comment-list tr.undo, 216 208 #the-comment-list div.undo { 217 209 background-color: #f4f4f4; … … 1854 1846 margin: 0; 1855 1847 } 1856 1848 1849 .column-response .post-com-count-no-comments:after, 1850 .column-response .post-com-count-approved:after, 1857 1851 .column-comments .post-com-count-no-comments:after, 1858 1852 .column-comments .post-com-count-approved:after { 1859 1853 content: none; 1860 1854 } 1861 1855 1856 .column-response .post-com-count [aria-hidden="true"], 1862 1857 .column-comments .post-com-count [aria-hidden="true"] { 1863 1858 display: none; 1864 1859 } 1865 1860 1861 .column-response .post-com-count-wrapper, 1866 1862 .column-comments .post-com-count-wrapper { 1867 1863 white-space: normal; 1868 1864 } 1869 1865 1866 .column-response .post-com-count-wrapper > a, 1870 1867 .column-comments .post-com-count-wrapper > a { 1871 1868 display: block; 1872 1869 } 1873 1870 1871 .column-response .post-com-count-no-comments, 1872 .column-response .post-com-count-approved, 1874 1873 .column-comments .post-com-count-no-comments, 1875 1874 .column-comments .post-com-count-approved { 1876 1875 margin-top: 0; 1877 1876 margin-right: 0.5em; 1878 1877 } 1879 1878 1879 .column-response .post-com-count-pending, 1880 1880 .column-comments .post-com-count-pending { 1881 1881 position: static; 1882 1882 height: auto; … … 1892 1892 text-align: left; 1893 1893 } 1894 1894 1895 .column-response .post-com-count-pending:hover, 1895 1896 .column-comments .post-com-count-pending:hover { 1896 1897 color: #dc3232; 1897 1898 } -
src/wp-admin/includes/class-wp-comments-list-table.php
687 687 } 688 688 689 689 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>';693 690 if ( 'attachment' == $post->post_type && ( $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) ) { 694 691 echo $thumb; 695 692 } 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>'; 697 696 echo '<span class="post-com-count-wrapper">'; 698 697 $this->comments_bubble( $post->ID, $pending_comments ); 699 698 echo '</span> '; 699 echo '</div>'; 700 700 } 701 701 702 702 /**