Changeset 1355 for trunk/wp-admin/link-categories.php
- Timestamp:
- 05/24/2004 08:22:18 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/link-categories.php
r1175 r1355 72 72 $list_limit = -1; 73 73 74 $wpdb->query("INSERT INTO $ tablelinkcategories (cat_id, cat_name, auto_toggle, show_images, show_description, \n" .74 $wpdb->query("INSERT INTO $wpdb->linkcategories (cat_id, cat_name, auto_toggle, show_images, show_description, \n" . 75 75 " show_rating, show_updated, sort_order, sort_desc, text_before_link, text_after_link, text_after_all, list_limit) \n" . 76 76 " VALUES ('0', '$cat_name', '$auto_toggle', '$show_images', '$show_description', \n" . … … 96 96 die (__("Cheatin' uh ?")); 97 97 98 $wpdb->query("DELETE FROM $ tablelinkcategories WHERE cat_id='$cat_id'");99 $wpdb->query("UPDATE $ tablelinks SET link_category=1 WHERE link_category='$cat_id'");98 $wpdb->query("DELETE FROM $wpdb->linkcategories WHERE cat_id='$cat_id'"); 99 $wpdb->query("UPDATE $wpdb->links SET link_category=1 WHERE link_category='$cat_id'"); 100 100 101 101 header('Location: link-categories.php'); … … 108 108 $row = $wpdb->get_row("SELECT cat_id, cat_name, auto_toggle, show_images, show_description, " 109 109 . " show_rating, show_updated, sort_order, sort_desc, text_before_link, text_after_link, " 110 . " text_after_all, list_limit FROM $ tablelinkcategories WHERE cat_id=$cat_id");110 . " text_after_all, list_limit FROM $wpdb->linkcategories WHERE cat_id=$cat_id"); 111 111 if ($row) { 112 112 if ($row->list_limit == -1) { … … 264 264 $list_limit = -1; 265 265 266 $wpdb->query("UPDATE $ tablelinkcategories set266 $wpdb->query("UPDATE $wpdb->linkcategories set 267 267 cat_name='$cat_name', 268 268 auto_toggle='$auto_toggle', … … 325 325 $results = $wpdb->get_results("SELECT cat_id, cat_name, auto_toggle, show_images, show_description, " 326 326 . " show_rating, show_updated, sort_order, sort_desc, text_before_link, text_after_link, " 327 . " text_after_all, list_limit FROM $ tablelinkcategories ORDER BY cat_id");327 . " text_after_all, list_limit FROM $wpdb->linkcategories ORDER BY cat_id"); 328 328 $i = 1; 329 329 foreach ($results as $row) {
Note: See TracChangeset
for help on using the changeset viewer.