[wp-cvs] wordpress/wp-admin post.php,1.124,1.125

Michel Valdrighi michelvaldrighi at users.sourceforge.net
Tue Feb 1 11:03:49 GMT 2005


Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30829/wp-admin

Modified Files:
	post.php 
Log Message:
Fix for bug #559, capitalisation issue

Index: post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/post.php,v
retrieving revision 1.124
retrieving revision 1.125
diff -C2 -d -r1.124 -r1.125
*** post.php	1 Feb 2005 01:49:51 -0000	1.124
--- post.php	1 Feb 2005 11:03:45 -0000	1.125
***************
*** 433,437 ****
  	$commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'javascript:history.go(-1)'));
  
! 	if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_id'])) {
  		die('You are not allowed to edit comments on this post.');
  	}
--- 433,437 ----
  	$commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'javascript:history.go(-1)'));
  
! 	if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_ID'])) {
  		die('You are not allowed to edit comments on this post.');
  	}
***************
*** 455,459 ****
  	$commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
  
! 	if (!user_can_delete_post_comments($user_ID, $commentdata['comment_post_id'])) {
  		die('You are not allowed to delete comments on this post.');
  	}
--- 455,459 ----
  	$commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
  
! 	if (!user_can_delete_post_comments($user_ID, $commentdata['comment_post_ID'])) {
  		die('You are not allowed to delete comments on this post.');
  	}
***************
*** 497,501 ****
  	$commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'post.php'));
  
! 	if (!user_can_delete_post_comments($user_ID, $commentdata['comment_post_id'])) {
  		die('You are not allowed to edit comments on this post.');
  	}
--- 497,501 ----
  	$commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'post.php'));
  
! 	if (!user_can_delete_post_comments($user_ID, $commentdata['comment_post_ID'])) {
  		die('You are not allowed to edit comments on this post.');
  	}
***************
*** 528,532 ****
  	$commentdata = get_commentdata($comment) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
  
! 	if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_id'])) {
  		die('You are not allowed to edit comments on this post, so you cannot disapprove this comment.');
  	}
--- 528,532 ----
  	$commentdata = get_commentdata($comment) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
  
! 	if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_ID'])) {
  		die('You are not allowed to edit comments on this post, so you cannot disapprove this comment.');
  	}
***************
*** 548,552 ****
  	$commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
  
! 	if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_id'])) {
  		die('You are not allowed to edit comments on this post, so you cannot approve this comment.');
  	}
--- 548,552 ----
  	$commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
  
! 	if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_ID'])) {
  		die('You are not allowed to edit comments on this post, so you cannot approve this comment.');
  	}
***************
*** 573,577 ****
  	$commentdata = get_commentdata($comment) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
  
! 	if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_id'])) {
  		die('You are not allowed to edit comments on this post, so you cannot approve this comment.');
  	}
--- 573,577 ----
  	$commentdata = get_commentdata($comment) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
  
! 	if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_ID'])) {
  		die('You are not allowed to edit comments on this post, so you cannot approve this comment.');
  	}



More information about the cvs mailing list