Ticket #32334: 32334.patch
File 32334.patch, 2.9 KB (added by , 9 years ago) |
---|
-
src/wp-admin/comment.php
66 66 $comment_id = absint( $_GET['c'] ); 67 67 68 68 if ( !$comment = get_comment( $comment_id ) ) 69 comment_footer_die( __( 'Oops, no comment with this ID.') . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'javascript:history.go(-1)') );69 comment_footer_die( __( 'Invalid comment ID.' ) . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'javascript:history.go(-1)') ); 70 70 71 71 if ( !current_user_can( 'edit_comment', $comment_id ) ) 72 72 comment_footer_die( __('You are not allowed to edit this comment.') ); … … 120 120 switch ( $action ) { 121 121 case 'spam' : 122 122 $caution_msg = __('You are about to mark the following comment as spam:'); 123 $button = _ _('Mark as Spam');123 $button = _x( 'Mark as Spam', 'comment' ); 124 124 break; 125 125 case 'trash' : 126 126 $caution_msg = __('You are about to move the following comment to the Trash:'); … … 174 174 </tr> 175 175 <?php } ?> 176 176 <tr> 177 <th scope="row"><?php _e( 'In Response To' ); ?></th>177 <th scope="row"><?php /* translators: column name or table row header */ _e( 'In Response To' ); ?></th> 178 178 <td> 179 179 <?php 180 180 $post_id = $comment->comment_post_ID; … … 249 249 $noredir = isset($_REQUEST['noredir']); 250 250 251 251 if ( !$comment = get_comment($comment_id) ) 252 comment_footer_die( __( 'Oops, no comment with this ID.') . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'edit-comments.php') );252 comment_footer_die( __( 'Invalid comment ID.' ) . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'edit-comments.php') ); 253 253 if ( !current_user_can( 'edit_comment', $comment->comment_ID ) ) 254 254 comment_footer_die( __('You are not allowed to edit comments on this post.') ); 255 255 -
src/wp-admin/edit-comments.php
161 161 $error_msg = ''; 162 162 switch ( $error ) { 163 163 case 1 : 164 $error_msg = __( ' Oops, no comment with thisID.' );164 $error_msg = __( 'Invalid comment ID.' ); 165 165 break; 166 166 case 2 : 167 167 $error_msg = __( 'You are not allowed to edit comments on this post.' ); -
src/wp-admin/includes/class-wp-comments-list-table.php
311 311 $columns['comment'] = _x( 'Comment', 'column name' ); 312 312 313 313 if ( !$post_id ) 314 $columns['response'] = _x( 'In Response To', 'column name' ); 314 /* translators: column name or table row header */ 315 $columns['response'] = __( 'In Response To' ); 315 316 316 317 return $columns; 317 318 }