Ticket #4529: emptytrash.patch
| File emptytrash.patch, 2.4 KB (added by mrmist, 4 years ago) |
|---|
-
wp-admin/edit-comments.php
302 302 wp_nonce_field('bulk-destroy', '_destroy_nonce'); 303 303 if ( 'spam' == $comment_status ) { ?> 304 304 <input type="submit" name="delete_all" id="delete_all" value="<?php esc_attr_e('Empty Spam'); ?>" class="button-secondary apply" /> 305 <?php } elseif ( 'trash' == $comment_status ) { ?>305 <?php } elseif ( 'trash' == $comment_status && current_user_can('moderate_comments') ) { ?> 306 306 <input type="submit" name="delete_all" id="delete_all" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" /> 307 307 <?php } 308 308 } ?> … … 374 374 375 375 <?php if ( 'spam' == $comment_status ) { ?> 376 376 <input type="submit" name="delete_all2" id="delete_all2" value="<?php esc_attr_e('Empty Spam'); ?>" class="button-secondary apply" /> 377 <?php } elseif ( 'trash' == $comment_status ) { ?>377 <?php } elseif ( 'trash' == $comment_status && current_user_can('moderate_comments') ) { ?> 378 378 <input type="submit" name="delete_all2" id="delete_all2" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" /> 379 379 <?php } ?> 380 380 <?php do_action('manage_comments_nav', $comment_status); ?> -
wp-admin/edit.php
284 284 do_action('restrict_manage_posts'); 285 285 ?> 286 286 <input type="submit" id="post-query-submit" value="<?php esc_attr_e('Filter'); ?>" class="button-secondary" /> 287 <?php } if ( $_GET['post_status'] == 'trash' ) { ?>287 <?php } if ( $_GET['post_status'] == 'trash' && current_user_can('edit_others_posts') ) { ?> 288 288 <input type="submit" name="delete_all" id="delete_all" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" /> 289 289 <?php } ?> 290 290 </div> … … 329 329 <?php } ?> 330 330 </select> 331 331 <input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" /> 332 <?php if ( $_GET['post_status'] == 'trash' ) { ?>332 <?php if ( $_GET['post_status'] == 'trash' && current_user_can('edit_others_posts') ) { ?> 333 333 <input type="submit" name="delete_all2" id="delete_all2" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" /> 334 334 <?php } ?> 335 335 <br class="clear" />
