Changeset 11741 for trunk/wp-admin/edit-comments.php
- Timestamp:
- 07/24/2009 07:23:11 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-comments.php
r11731 r11741 251 251 <option value="unapprove"><?php _e('Unapprove'); ?></option> 252 252 <?php endif; ?> 253 <?php if ( 'a pproved' != $comment_status ): ?>253 <?php if ( 'all' == $comment_status || 'moderated' == $comment_status || 'spam' == $comment_status ): ?> 254 254 <option value="approve"><?php _e('Approve'); ?></option> 255 255 <?php endif; ?> 256 <?php if ( ' spam' != $comment_status ): ?>256 <?php if ( 'all' == $comment_status || 'approved' == $comment_status || 'moderated' == $comment_status ): ?> 257 257 <option value="markspam"><?php _e('Mark as Spam'); ?></option> 258 <?php endif; ?> 259 <?php if ( 'deleted' == $comment_status ): ?> 260 <option value="unapprove"><?php _e('Return to Pending'); ?></option> 258 261 <?php endif; ?> 259 262 <?php if ( 'deleted' == $comment_status || 'spam' == $comment_status ): ?> 260 263 <option value="destroy"><?php _e('Delete Permanently'); ?></option> 261 264 <?php else: ?> 262 <option value="delete"><?php _e(' Delete'); ?></option>265 <option value="delete"><?php _e('Move to Trash'); ?></option> 263 266 <?php endif; ?> 264 267 </select> … … 287 290 <?php } 288 291 289 if ( 'spam' == $comment_status || 'deleted' == $comment_status) {292 if ( ( 'spam' == $comment_status || 'deleted' == $comment_status) && current_user_can ('moderate_comments') ) { 290 293 wp_nonce_field('bulk-destroy', '_destroy_nonce'); 291 if ( current_user_can ('moderate_comments')) { ?>294 if ( 'spam' == $comment_status ) { ?> 292 295 <input type="submit" name="destroy_all" id="destroy_all" value="<?php esc_attr_e('Permanently Delete All'); ?>" class="button-secondary apply" /> 296 <?php } elseif ( 'deleted' == $comment_status ) { ?> 297 <input type="submit" name="destroy_all" id="destroy_all" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-primary apply" /> 293 298 <?php } 294 299 } ?> … … 342 347 <option value="unapprove"><?php _e('Unapprove'); ?></option> 343 348 <?php endif; ?> 344 <?php if ( 'a pproved' != $comment_status ): ?>349 <?php if ( 'all' == $comment_status || 'moderated' == $comment_status || 'spam' == $comment_status ): ?> 345 350 <option value="approve"><?php _e('Approve'); ?></option> 346 351 <?php endif; ?> 347 <?php if ( ' spam' != $comment_status ): ?>352 <?php if ( 'all' == $comment_status || 'approved' == $comment_status || 'moderated' == $comment_status ): ?> 348 353 <option value="markspam"><?php _e('Mark as Spam'); ?></option> 354 <?php endif; ?> 355 <?php if ( 'deleted' == $comment_status ): ?> 356 <option value="unapprove"><?php _e('Return to Pending'); ?></option> 349 357 <?php endif; ?> 350 358 <?php if ( 'deleted' == $comment_status || 'spam' == $comment_status ): ?> 351 359 <option value="destroy"><?php _e('Delete Permanently'); ?></option> 352 360 <?php else: ?> 353 <option value="delete"><?php _e(' Delete'); ?></option>361 <option value="delete"><?php _e('Move to Trash'); ?></option> 354 362 <?php endif; ?> 355 363 </select> 356 364 <input type="submit" name="doaction2" id="doaction2" value="<?php esc_attr_e('Apply'); ?>" class="button-secondary apply" /> 357 365 358 <?php if ( 'spam' == $comment_status || 'deleted' == $comment_status ) { ?> 359 <input type="submit" name="destroy_all2" id="destroy_all2" value="<?php esc_attr_e('Permanently Delete All'); ?>" class="button-secondary apply" /> 366 <?php if ( 'spam' == $comment_status ) { ?> 367 <input type="submit" name="destroy_all2" id="destroy_all2" value="<?php esc_attr_e('Empty Quarantine'); ?>" class="button-secondary apply" /> 368 <?php } elseif ( 'deleted' == $comment_status ) { ?> 369 <input type="submit" name="destroy_all2" id="destroy_all2" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" /> 360 370 <?php } ?> 361 371 <?php do_action('manage_comments_nav', $comment_status); ?>
Note: See TracChangeset
for help on using the changeset viewer.