diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-07-14 07:09:38 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-07-14 07:09:38 +0000 |
| commit | 25a558f83f0dc55ffe4a849b1c652f227bef3e33 (patch) | |
| tree | 14a7f1e8aa0688b6c5c2889b43def7debd760d71 /wp-inst/wp-admin/edit.php | |
| parent | e8e403c56f499f37aa39e91b9bdfe9f1b5e218e6 (diff) | |
| download | wordpress-mu-25a558f83f0dc55ffe4a849b1c652f227bef3e33.tar.gz wordpress-mu-25a558f83f0dc55ffe4a849b1c652f227bef3e33.tar.xz wordpress-mu-25a558f83f0dc55ffe4a849b1c652f227bef3e33.zip | |
Merged changes from WP SVN.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@22 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-admin/edit.php')
| -rw-r--r-- | wp-inst/wp-admin/edit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-inst/wp-admin/edit.php b/wp-inst/wp-admin/edit.php index 7f41629..052540f 100644 --- a/wp-inst/wp-admin/edit.php +++ b/wp-inst/wp-admin/edit.php @@ -198,13 +198,13 @@ foreach($posts_columns as $column_name=>$column_display_name) { case 'control_edit': ?> - <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> + <td><?php if ( current_user_can('edit_post',$post->ID) ) { echo "<a href='post.php?action=edit&post=$id' class='edit'>" . __('Edit') . "</a>"; } ?></td> <?php break; case 'control_delete': ?> - <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> + <td><?php if ( current_user_can('edit_post',$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> <?php break; |
