Make WordPress Core


Ignore:
Timestamp:
08/20/2008 04:06:36 AM (16 years ago)
Author:
ryan
Message:

Merge crazyhorse management pages. see #7552

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/categories.php

    r8618 r8682  
    1111
    1212$title = __('Categories');
    13 $parent_file = 'edit.php';
    1413
    1514wp_reset_vars(array('action', 'cat'));
    1615
    17 if ( isset($_GET['deleteit']) && isset($_GET['delete']) )
     16if ( $_GET['action'] == 'delete' && isset($_GET['delete']) )
    1817    $action = 'bulk-delete';
    1918
     
    128127<div class="wrap">
    129128<form id="posts-filter" action="" method="get">
    130 <?php if ( current_user_can('manage_categories') ) : ?>
    131     <h2><?php printf(__('Manage Categories (<a href="%s">add new</a>)'), '#addcat') ?> </h2>
    132 <?php else : ?>
    133     <h2><?php _e('Manage Categories') ?> </h2>
    134 <?php endif; ?>
     129    <h2><?php printf( current_user_can('manage_categories') ? __('Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2>
    135130
    136131<p id="post-search">
     
    163158
    164159<div class="alignleft">
    165 <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary delete" />
     160<select name="action">
     161<option value="" selected><?php _e('Actions'); ?></option>
     162<option value="delete"><?php _e('Delete'); ?></option>
     163</select>
     164<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" class="button-secondary action" />
    166165<?php wp_nonce_field('bulk-categories'); ?>
    167166</div>
Note: See TracChangeset for help on using the changeset viewer.