Changeset 3570 for trunk/wp-admin/list-manipulation.php
- Timestamp:
- 02/27/2006 04:57:30 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/list-manipulation.php
r3566 r3570 23 23 die ('-1'); 24 24 25 if ( $wpdb->query("DELETE FROM $wpdb->links WHERE link_id = '$id'") )25 if ( wp_delete_link($id) ) 26 26 die('1'); 27 27 else die('0'); … … 81 81 if ( 1 == $id ) 82 82 die('0'); 83 if ( !current_user_can('manage_ links') )83 if ( !current_user_can('manage_categories') ) 84 84 die('-1'); 85 85 86 if ( $wpdb->query("DELETE FROM $wpdb->linkcategories WHERE cat_id='$id'") ) { 87 $wpdb->query("UPDATE $wpdb->links SET link_category=1 WHERE link_category='$id'"); 86 if ( wp_delete_category($id) ) { 88 87 die('1'); 89 88 } else {
Note: See TracChangeset
for help on using the changeset viewer.