Make WordPress Core


Ignore:
Timestamp:
06/05/2006 02:12:59 AM (20 years ago)
Author:
ryan
Message:

Reorg bookmark functions. #2525

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-db.php

    r3800 r3845  
    285285}
    286286
    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 
    304287function wp_insert_link($linkdata) {
    305288        global $wpdb, $current_user;
Note: See TracChangeset for help on using the changeset viewer.