Changeset 9028 for trunk/wp-admin/link-manager.php
- Timestamp:
- 09/29/2008 09:26:21 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/link-manager.php
r9018 r9028 11 11 12 12 // Handle bulk deletes 13 if ( isset($_GET['action']) && isset($_GET['linkcheck']) && isset($_GET['doaction'])) {13 if ( isset($_GET['action']) && isset($_GET['linkcheck']) ) { 14 14 check_admin_referer('bulk-bookmarks'); 15 $doaction = $_GET['action'] ? $_GET['action'] : $_GET['action2']; 15 16 16 17 if ( ! current_user_can('manage_links') ) 17 18 wp_die( __('You do not have sufficient permissions to edit the links for this blog.') ); 18 19 if ( $_GET['action'] == 'delete') {20 foreach ( (array) $_GET['linkcheck'] as $link_id ) {19 20 if ( 'delete' == $doaction ) { 21 foreach ( (array) $_GET['linkcheck'] as $link_id ) { 21 22 $link_id = (int) $link_id; 22 23 … … 29 30 exit; 30 31 } 31 } elseif ( !empty($_GET['_wp_http_referer']) ) {32 wp_redirect( remove_query_arg(array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI'])));32 } elseif ( isset($_GET['_wp_http_referer']) && ! empty($_GET['_wp_http_referer']) ) { 33 wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) ); 33 34 exit; 34 35 } … … 39 40 wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image', 'description', 'visible', 'target', 'category', 'link_id', 'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel', 'notes', 'linkcheck[]')); 40 41 41 if ( empty ($cat_id))42 if ( empty($cat_id) ) 42 43 $cat_id = 'all'; 43 44 44 if ( empty ($order_by))45 if ( empty($order_by) ) 45 46 $order_by = 'order_name'; 46 47 … … 159 160 </tr> 160 161 </thead> 162 163 <tfoot> 164 <tr> 165 <?php print_column_headers('link', false); ?> 166 </tr> 167 </tfoot> 168 161 169 <tbody> 162 170 <?php … … 249 257 <?php } ?> 250 258 259 <div class="tablenav"> 260 261 <div class="alignleft"> 262 <select name="action2"> 263 <option value="" selected><?php _e('Actions'); ?></option> 264 <option value="delete"><?php _e('Delete'); ?></option> 265 </select> 266 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" /> 267 </div> 268 269 <br class="clear" /> 270 </div> 271 251 272 </form> 252 273 253 274 <div id="ajax-response"></div> 254 275 255 <div class="tablenav">256 <br class="clear" />257 </div>258 259 260 276 </div> 261 277
Note: See TracChangeset
for help on using the changeset viewer.