~canonical-sysadmins/wordpress/4.8.3

« back to all changes in this revision

Viewing changes to wp-admin/comment.php

  • Committer: Ryan Finnie
  • Date: 2015-08-31 16:09:47 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: ryan.finnie@canonical.com-20150831160947-1h6rfxby9z1ec62u
Merge WP4.3 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
$parent_file = 'edit-comments.php';
13
13
$submenu_file = 'edit-comments.php';
14
14
 
 
15
/**
 
16
 * @global string $action
 
17
 */
15
18
global $action;
16
19
wp_reset_vars( array('action') );
17
20
 
66
69
        $comment_id = absint( $_GET['c'] );
67
70
 
68
71
        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)') );
 
72
                comment_footer_die( __( 'Invalid comment ID.' ) . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'javascript:history.go(-1)') );
70
73
 
71
74
        if ( !current_user_can( 'edit_comment', $comment_id ) )
72
75
                comment_footer_die( __('You are not allowed to edit this comment.') );
114
117
?>
115
118
<div class="wrap">
116
119
 
117
 
<h2><?php echo esc_html( $title ); ?></h2>
 
120
<h1><?php echo esc_html( $title ); ?></h1>
118
121
 
119
122
<?php
120
123
switch ( $action ) {
121
124
        case 'spam' :
122
125
                $caution_msg = __('You are about to mark the following comment as spam:');
123
 
                $button      = __('Mark as Spam');
 
126
                $button      = _x( 'Mark as Spam', 'comment' );
124
127
                break;
125
128
        case 'trash' :
126
129
                $caution_msg = __('You are about to move the following comment to the Trash:');
174
177
</tr>
175
178
<?php } ?>
176
179
<tr>
177
 
        <th scope="row"><?php _e( 'In Response To' ); ?></th>
 
180
        <th scope="row"><?php /* translators: column name or table row header */ _e( 'In Response To' ); ?></th>
178
181
        <td>
179
182
        <?php
180
183
                $post_id = $comment->comment_post_ID;
249
252
        $noredir = isset($_REQUEST['noredir']);
250
253
 
251
254
        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') );
 
255
                comment_footer_die( __( 'Invalid comment ID.' ) . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'edit-comments.php') );
253
256
        if ( !current_user_can( 'edit_comment', $comment->comment_ID ) )
254
257
                comment_footer_die( __('You are not allowed to edit comments on this post.') );
255
258