Changeset 16004 for trunk/wp-admin/includes/list-table-media.php
- Timestamp:
- 10/27/2010 08:48:55 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/list-table-media.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/list-table-media.php
r15958 r16004 91 91 function extra_tablenav( $which ) { 92 92 global $post_type, $detached; 93 $post_type_obj = get_post_type_object( $post_type ); 93 94 ?> 94 95 <div class="alignleft actions"> … … 105 106 if ( $detached ) { ?> 106 107 <input type="submit" id="find_detached" name="find_detached" value="<?php esc_attr_e( 'Scan for lost attachments' ); ?>" class="button-secondary" /> 107 <?php } elseif ( $this->is_trash && current_user_can( 'edit_others_posts') ) { ?>108 <?php } elseif ( $this->is_trash && current_user_can( $post_type_obj->cap->edit_others_posts ) ) { ?> 108 109 <input type="submit" id="delete_all" name="delete_all" value="<?php esc_attr_e( 'Empty Trash' ); ?>" class="button-secondary apply" /> 109 110 <?php } ?>
Note: See TracChangeset
for help on using the changeset viewer.