mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Show Empty Trash button only when the user has cap. props mrmist, see #4529
git-svn-id: https://develop.svn.wordpress.org/trunk@11778 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+4
-2
@@ -287,7 +287,9 @@ wp_dropdown_categories($dropdown_options);
|
||||
do_action('restrict_manage_posts');
|
||||
?>
|
||||
<input type="submit" id="post-query-submit" value="<?php esc_attr_e('Filter'); ?>" class="button-secondary" />
|
||||
<?php } if ( $_GET['post_status'] == 'trash' ) { ?>
|
||||
<?php }
|
||||
|
||||
if ( $_GET['post_status'] == 'trash' && current_user_can('edit_others_posts') ) { ?>
|
||||
<input type="submit" name="delete_all" id="delete_all" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" />
|
||||
<?php } ?>
|
||||
</div>
|
||||
@@ -332,7 +334,7 @@ if ( $page_links )
|
||||
<?php } ?>
|
||||
</select>
|
||||
<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
|
||||
<?php if ( $_GET['post_status'] == 'trash' ) { ?>
|
||||
<?php if ( $_GET['post_status'] == 'trash' && current_user_can('edit_others_posts') ) { ?>
|
||||
<input type="submit" name="delete_all2" id="delete_all2" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" />
|
||||
<?php } ?>
|
||||
<br class="clear" />
|
||||
|
||||
Reference in New Issue
Block a user