Changes in trunk/wp-admin/comment.php [15132:16326]
- File:
-
- 1 edited
-
trunk/wp-admin/comment.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/comment.php
r15132 r16326 49 49 '<p>' . __( 'You can also moderate the comment from this screen using the Status box, where you can also change the timestamp of the comment.' ) . '</p>' . 50 50 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 51 '<p>' . __( '<a href="http://codex.wordpress.org/Administration_Panels#Comments" target="_blank"> Comments Documentation</a>' ) . '</p>' .51 '<p>' . __( '<a href="http://codex.wordpress.org/Administration_Panels#Comments" target="_blank">Documentation on Comments</a>' ) . '</p>' . 52 52 '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank" >Support Forums</a>' ) . '</p>' 53 53 ); … … 61 61 comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">'.__('Go back').'</a>!', 'javascript:history.go(-1)') ); 62 62 63 if ( !current_user_can( 'edit_post', $comment->comment_post_ID) )64 comment_footer_die( __('You are not allowed to edit comments on this post.') );63 if ( !current_user_can( 'edit_comment', $comment_id ) ) 64 comment_footer_die( __('You are not allowed to edit this comment.') ); 65 65 66 66 if ( 'trash' == $comment->comment_approved ) … … 78 78 case 'spam' : 79 79 80 $title = __('Moderate Comment'); 81 80 82 $comment_id = absint( $_GET['c'] ); 81 83 … … 85 87 } 86 88 87 if ( !current_user_can( 'edit_ post', $comment->comment_post_ID ) ) {89 if ( !current_user_can( 'edit_comment', $comment->comment_ID ) ) { 88 90 wp_redirect( admin_url('edit-comments.php?error=2') ); 89 91 die(); … … 108 110 109 111 <?php screen_icon(); ?> 110 <h2><?php e sc_html_e( 'Moderate Comment'); ?></h2>112 <h2><?php echo esc_html( $title ); ?></h2> 111 113 112 114 <?php … … 179 181 <tr> 180 182 <td><a class="button" href="<?php echo admin_url('edit-comments.php'); ?>"><?php esc_attr_e('No'); ?></a></td> 181 <td class="textright">< input type='submit' class="button" value='<?php echo esc_attr($button); ?>' /></td>183 <td class="textright"><?php submit_button( $button, 'button' ); ?></td> 182 184 </tr> 183 185 </table> … … 185 187 <?php wp_nonce_field( $nonce_action ); ?> 186 188 <input type='hidden' name='action' value='<?php echo esc_attr($formaction); ?>' /> 187 <input type='hidden' name='p' value='<?php echo esc_attr($comment->comment_post_ID); ?>' />188 189 <input type='hidden' name='c' value='<?php echo esc_attr($comment->comment_ID); ?>' /> 189 190 <input type='hidden' name='noredir' value='1' /> … … 213 214 if ( !$comment = get_comment($comment_id) ) 214 215 comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit-comments.php') ); 215 if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) )216 if ( !current_user_can( 'edit_comment', $comment->comment_ID ) ) 216 217 comment_footer_die( __('You are not allowed to edit comments on this post.') ); 217 218
Note: See TracChangeset
for help on using the changeset viewer.