Changeset 2452
- Timestamp:
- 03/17/2005 03:38:28 AM (20 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r2298 r2452 209 209 case 'control_edit': 210 210 ?> 211 <td><?php if ( user_can_edit_ user($user_ID,$authordata->ID) ) { echo "<a href='post.php?action=edit&post=$id' class='edit'>" . __('Edit') . "</a>"; } ?></td>211 <td><?php if ( user_can_edit_post($user_ID,$post->ID) ) { echo "<a href='post.php?action=edit&post=$id' class='edit'>" . __('Edit') . "</a>"; } ?></td> 212 212 <?php 213 213 break; … … 215 215 case 'control_delete': 216 216 ?> 217 <td><?php if ( user_can_edit_ user($user_ID,$authordata->ID) ) { echo "<a href='post.php?action=delete&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>217 <td><?php if ( user_can_edit_post($user_ID,$post->ID) ) { echo "<a href='post.php?action=delete&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> 218 218 <?php 219 219 break; -
trunk/wp-admin/post.php
r2441 r2452 229 229 if( 'private' == $postdata->post_status && $postdata->post_author != $user_ID ) 230 230 die ( __('You are not allowed to view other users\' private posts.') ); 231 232 if ( 'publish' == $post_status && (!user_can_create_post($user_ID)) ) {233 _e('You are not allowed to edit published posts.');234 break;235 }236 231 237 232 if ($post_status == 'static') {
Note: See TracChangeset
for help on using the changeset viewer.