Changeset 3845 for trunk/wp-admin/admin-db.php
- Timestamp:
- 06/05/2006 02:12:59 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-db.php
r3800 r3845 285 285 } 286 286 287 function get_link($link_id, $output = OBJECT) {288 global $wpdb;289 290 $link = $wpdb->get_row("SELECT * FROM $wpdb->links WHERE link_id = '$link_id'");291 $link->link_category = wp_get_link_cats($link_id);292 293 if ( $output == OBJECT ) {294 return $link;295 } elseif ( $output == ARRAY_A ) {296 return get_object_vars($link);297 } elseif ( $output == ARRAY_N ) {298 return array_values(get_object_vars($link));299 } else {300 return $link;301 }302 }303 304 287 function wp_insert_link($linkdata) { 305 288 global $wpdb, $current_user;
Note: See TracChangeset
for help on using the changeset viewer.