From 9376d20e68c15060e4441522836a0929cf972c87 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 5 Aug 2009 23:50:29 +0000 Subject: [PATCH] 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 --- wp-admin/edit-comments.php | 4 ++-- wp-admin/edit.php | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 4dfcdd6794..ca073a374e 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -305,7 +305,7 @@ if ( ( 'spam' == $comment_status || 'trash' == $comment_status) && current_user_ wp_nonce_field('bulk-destroy', '_destroy_nonce'); if ( 'spam' == $comment_status ) { ?> - + @@ -377,7 +377,7 @@ if ( $page_links ) - + diff --git a/wp-admin/edit.php b/wp-admin/edit.php index fe4b5780b8..d8239c9bff 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -287,7 +287,9 @@ wp_dropdown_categories($dropdown_options); do_action('restrict_manage_posts'); ?> - + @@ -332,7 +334,7 @@ if ( $page_links ) - +