Changeset 8682 for trunk/wp-admin/categories.php
- Timestamp:
- 08/20/2008 04:06:36 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/categories.php
r8618 r8682 11 11 12 12 $title = __('Categories'); 13 $parent_file = 'edit.php';14 13 15 14 wp_reset_vars(array('action', 'cat')); 16 15 17 if ( isset($_GET['deleteit'])&& isset($_GET['delete']) )16 if ( $_GET['action'] == 'delete' && isset($_GET['delete']) ) 18 17 $action = 'bulk-delete'; 19 18 … … 128 127 <div class="wrap"> 129 128 <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> 135 130 136 131 <p id="post-search"> … … 163 158 164 159 <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" /> 166 165 <?php wp_nonce_field('bulk-categories'); ?> 167 166 </div>
Note: See TracChangeset
for help on using the changeset viewer.