Ticket #23988: 23988.2.diff
| File 23988.2.diff, 6.2 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/comment.php
114 114 ?> 115 115 <div class="wrap"> 116 116 117 <div class="narrow">118 119 117 <h2><?php echo esc_html( $title ); ?></h2> 120 118 121 119 <?php 122 120 switch ( $action ) { 123 121 case 'spam' : 124 122 $caution_msg = __('You are about to mark the following comment as spam:'); 125 $button = __(' Spam Comment');123 $button = __('Mark as Spam'); 126 124 break; 127 125 case 'trash' : 128 126 $caution_msg = __('You are about to move the following comment to the Trash:'); 129 $button = __(' Trash Comment');127 $button = __('Move to Trash'); 130 128 break; 131 129 case 'delete' : 132 130 $caution_msg = __('You are about to delete the following comment:'); … … 158 156 <p><strong><?php _e('Caution:'); ?></strong> <?php echo $caution_msg; ?></p> 159 157 160 158 <table class="form-table comment-ays"> 161 <tr class="alt">159 <tr> 162 160 <th scope="row"><?php _e('Author'); ?></th> 163 161 <td><?php echo $comment->comment_author; ?></td> 164 162 </tr> … … 175 173 </tr> 176 174 <?php } ?> 177 175 <tr> 176 <th scope="row"><?php _e( 'In Response To' ); ?></th> 177 <td> 178 <?php 179 $post_id = $comment->comment_post_ID; 180 if ( current_user_can( 'edit_post', $post_id ) ) { 181 $post_link = "<a href='" . esc_url( get_edit_post_link( $post_id ) ) . "'>"; 182 $post_link .= esc_html( get_the_title( $post_id ) ) . '</a>'; 183 } else { 184 $post_link = esc_html( get_the_title( $post_id ) ); 185 } 186 echo $post_link; 187 188 if ( $comment->comment_parent ) { 189 $comment_url = esc_url( get_comment_link( $comment->comment_ID ) ); 190 $parent = get_comment( $comment->comment_parent ); 191 $parent_link = esc_url( get_comment_link( $comment->comment_parent ) ); 192 $name = get_comment_author( $parent->comment_ID ); 193 printf( ' | ' . __( 'In reply to <a href="%1$s">%2$s</a>.' ), $parent_link, $name ); 194 } 195 ?> 196 </td> 197 </tr> 198 <tr> 199 <th scope="row"><?php _e( 'Submitted on' ); ?></th> 200 <td> 201 <?php 202 /* translators: 2: comment date, 3: comment time */ 203 printf( __( '<a href="%1$s">%2$s at %3$s</a>' ), $comment_url, 204 /* translators: comment date format. See http://php.net/date */ 205 get_comment_date( __( 'Y/m/d' ) ), 206 get_comment_date( get_option( 'time_format' ) ) 207 ); 208 ?> 209 </td> 210 </tr> 211 <tr> 178 212 <th scope="row"><?php /* translators: field name in comment form */ _ex('Comment', 'noun'); ?></th> 179 213 <td><?php echo $comment->comment_content; ?></td> 180 214 </tr> 181 215 </table> 182 216 183 < p><?php _e('Are you sure you want to do this?'); ?></p>217 <form action="comment.php" method="get" class="comment-ays-submit"> 184 218 185 <form action="comment.php" method="get"> 219 <p> 220 <?php submit_button( $button, 'button', 'submit', false ); ?> 221 <a href="<?php echo admin_url('edit-comments.php'); ?>"><?php esc_attr_e( 'Cancel' ); ?></a></td> 222 </p> 186 223 187 <table width="100%">188 <tr>189 <td><a class="button" href="<?php echo admin_url('edit-comments.php'); ?>"><?php esc_attr_e('No'); ?></a></td>190 <td class="textright"><?php submit_button( $button, 'button' ); ?></td>191 </tr>192 </table>193 194 224 <?php wp_nonce_field( $nonce_action ); ?> 195 225 <input type="hidden" name="action" value="<?php echo esc_attr($formaction); ?>" /> 196 226 <input type="hidden" name="c" value="<?php echo esc_attr($comment->comment_ID); ?>" /> … … 198 228 </form> 199 229 200 230 </div> 201 </div>202 231 <?php 203 232 break; 204 233 -
src/wp-admin/css/common.css
177 177 .wp-editor-container, 178 178 .popular-tags, 179 179 .feature-filter, 180 .imgedit-group { 180 .imgedit-group, 181 .comment-ays { 181 182 border: 1px solid #e5e5e5; 182 183 -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); 183 184 box-shadow: 0 1px 1px rgba(0,0,0,0.04); … … 190 191 .widgets-holder-wrap, 191 192 .popular-tags, 192 193 .feature-filter, 193 .imgedit-group { 194 .imgedit-group, 195 .comment-ays { 194 196 background: #fff; 195 197 } 196 198 … … 1620 1622 box-sizing: border-box; 1621 1623 } 1622 1624 1623 .narrow {1624 width: 70%;1625 margin-bottom: 40px;1626 }1627 1628 .narrow p {1629 line-height: 150%;1630 }1631 1632 1625 .widefat th, 1633 1626 .widefat td { 1634 1627 overflow: hidden; -
src/wp-admin/css/edit.css
1167 1167 height: 200px; 1168 1168 } 1169 1169 1170 .comment-ays { 1171 margin-bottom: 0; 1172 border-bottom-style: solid; 1173 border-bottom-width: 1px; 1170 .comment-ays th, 1171 .comment-ays td { 1172 padding: 10px; 1174 1173 } 1175 1174 1176 .comment-ays .alt{1177 background-color: transparent;1175 form.comment-ays-submit .button { 1176 margin-right: 1em; 1178 1177 } 1179 1178 1180 1179 .trash-undo-inside, … … 1593 1592 } 1594 1593 1595 1594 /* Moderate Comment */ 1596 .comment-ays { 1597 border-bottom: none; 1595 .comment-ays th, 1596 .comment-ays td { 1597 padding-bottom: 0; 1598 1598 } 1599 1599 1600 .comment-ays td { 1601 padding-top: 6px; 1602 } 1603 1600 1604 /* Links */ 1601 1605 .links-table #link_rel { 1602 1606 max-width: none; -
src/wp-admin/edit-form-comment.php
108 108 <span id="timestamp"><?php printf($stamp, $date); ?></span> <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><?php _e('Edit') ?></a> 109 109 <div id='timestampdiv' class='hide-if-js'><?php touch_time(('editcomment' == $action), 0); ?></div> 110 110 </div> 111 112 <?php 113 $post_id = $comment->comment_post_ID; 114 if ( current_user_can( 'edit_post', $post_id ) ) { 115 $post_link = "<a href='" . esc_url( get_edit_post_link( $post_id ) ) . "'>"; 116 $post_link .= esc_html( get_the_title( $post_id ) ) . '</a>'; 117 } else { 118 $post_link = esc_html( get_the_title( $post_id ) ); 119 } 120 ?> 121 122 <div class="misc-pub-section misc-pub-response-to"> 123 <?php printf( __( 'In response to: <b>%s</b>' ), $post_link ); ?> 124 </div> 125 126 <?php 127 if ( $comment->comment_parent ) : 128 $parent = get_comment( $comment->comment_parent ); 129 $parent_link = esc_url( get_comment_link( $comment->comment_parent ) ); 130 $name = get_comment_author( $parent->comment_ID ); 131 ?> 132 <div class="misc-pub-section misc-pub-reply-to"> 133 <?php printf( __( 'In reply to: <b><a href="%1$s">%2$s</a></b>' ), $parent_link, $name ); ?> 134 </div> 135 <?php endif; ?> 136 111 137 </div> <!-- misc actions --> 112 138 <div class="clear"></div> 113 139 </div>