[wp-cvs] wordpress/wp-admin edit.php,1.46,1.47

Ryan Boren rboren at users.sourceforge.net
Sun Feb 13 19:30:37 GMT 2005


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

Modified Files:
	edit.php 
Log Message:
Wrong arguments for user_can_edit_user() in wp-admin/edit.php. http://mosquito.wordpress.org/view.php?id=865  Hat tip:  Agent Orange

Index: edit.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/edit.php,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** edit.php	11 Feb 2005 22:45:49 -0000	1.46
--- edit.php	13 Feb 2005 19:30:34 -0000	1.47
***************
*** 209,213 ****
  	case 'control_edit':
  		?>
! 		<td><?php if ( user_can_edit_user($user_level,$authordata->user_level) ) { echo "<a href='post.php?action=edit&amp;post=$id' class='edit'>" . __('Edit') . "</a>"; } ?></td>
  		<?php
  		break;
--- 209,213 ----
  	case 'control_edit':
  		?>
! 		<td><?php if ( user_can_edit_user($user_ID,$authordata->ID) ) { echo "<a href='post.php?action=edit&amp;post=$id' class='edit'>" . __('Edit') . "</a>"; } ?></td>
  		<?php
  		break;
***************
*** 215,219 ****
  	case 'control_delete':
  		?>
! 		<td><?php if ( user_can_edit_user($user_level,$authordata->user_level) ) { echo "<a href='post.php?action=delete&amp;post=$id' class='delete' onclick=\"return confirm('" . sprintf(__("You are about to delete this post \'%s\'\\n  \'OK\' to delete, \'Cancel\' to stop."), wp_specialchars(get_the_title('', ''), 1) ) . "')\">" . __('Delete') . "</a>"; } ?></td>
  		<?php
  		break;
--- 215,219 ----
  	case 'control_delete':
  		?>
! 		<td><?php if ( user_can_edit_user($user_ID,$authordata->ID) ) { echo "<a href='post.php?action=delete&amp;post=$id' class='delete' onclick=\"return confirm('" . sprintf(__("You are about to delete this post \'%s\'\\n  \'OK\' to delete, \'Cancel\' to stop."), wp_specialchars(get_the_title('', ''), 1) ) . "')\">" . __('Delete') . "</a>"; } ?></td>
  		<?php
  		break;



More information about the cvs mailing list