Changeset 11841 for trunk/wp-admin/edit-attachment-rows.php
- Timestamp:
- 08/19/2009 08:35:24 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit-attachment-rows.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-attachment-rows.php
r11768 r11841 60 60 case 'cb': 61 61 ?> 62 <th scope="row" class="check-column">< input type="checkbox" name="media[]" value="<?php the_ID(); ?>" /></th>62 <th scope="row" class="check-column"><?php if ( current_user_can('edit_post', $post->ID) ) { ?><input type="checkbox" name="media[]" value="<?php the_ID(); ?>" /><?php } ?></th> 63 63 <?php 64 64 break; … … 90 90 <?php 91 91 $actions = array(); 92 if ( $is_trash && current_user_can('delete_post', $post->ID) ) { 93 $actions['untrash'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=untrash&post=$post->ID", 'untrash-post_' . $post->ID) . "'>" . __('Restore') . "</a>"; 94 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID) . "'>" . __('Delete Permanently') . "</a>"; 92 if ( $is_trash ) { 93 if ( current_user_can('delete_post', $post->ID) ) { 94 $actions['untrash'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=untrash&post=$post->ID", 'untrash-post_' . $post->ID) . "'>" . __('Restore') . "</a>"; 95 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID) . "'>" . __('Delete Permanently') . "</a>"; 96 } 95 97 } else { 96 98 if ( current_user_can('edit_post', $post->ID) )
Note: See TracChangeset
for help on using the changeset viewer.