Changeset 9028 for trunk/wp-admin/edit-link-categories.php
- Timestamp:
- 09/29/2008 09:26:21 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-link-categories.php
r9016 r9028 13 13 if ( isset($_GET['action']) && isset($_GET['delete']) ) { 14 14 check_admin_referer('bulk-link-categories'); 15 $doaction = $_GET['action'] ? $_GET['action'] : $_GET['action2']; 15 16 16 17 if ( !current_user_can('manage_categories') ) 17 18 wp_die(__('Cheatin’ uh?')); 18 19 if ( $_GET['action'] == 'delete') {19 20 if ( 'delete' == $doaction ) { 20 21 foreach( (array) $_GET['delete'] as $cat_ID ) { 21 22 $cat_name = get_term_field('name', $cat_ID, 'link_category'); … … 39 40 exit(); 40 41 } 41 } elseif ( !empty($_GET['_wp_http_referer']) ) {42 wp_redirect( remove_query_arg(array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI'])));42 } elseif ( isset($_GET['_wp_http_referer']) && ! empty($_GET['_wp_http_referer']) ) { 43 wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) ); 43 44 exit; 44 45 } … … 121 122 </tr> 122 123 </thead> 124 125 <tfoot> 126 <tr> 127 <?php print_column_headers('link-category', false); ?> 128 </tr> 129 </tfoot> 130 123 131 <tbody id="the-list" class="list:link-cat"> 124 132 <?php … … 144 152 </table> 145 153 146 </form>147 148 154 <div class="tablenav"> 149 150 155 <?php 151 156 if ( $page_links ) 152 157 echo "<div class='tablenav-pages'>$page_links</div>"; 153 158 ?> 159 160 <div class="alignleft"> 161 <select name="action2"> 162 <option value="" selected><?php _e('Actions'); ?></option> 163 <option value="delete"><?php _e('Delete'); ?></option> 164 </select> 165 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" /> 166 </div> 167 154 168 <br class="clear" /> 155 169 </div> 156 170 <br class="clear" /> 171 </form> 157 172 158 173 </div>
Note: See TracChangeset
for help on using the changeset viewer.