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