]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/bookmark.php
Wordpress 3.0.1
[autoinstalls/wordpress.git] / wp-admin / includes / bookmark.php
index 7dd8baf65130804c4507a3732abbe1748f9b2809..09e5411e5901e30a57e9fc3391d164a7f24e85e8 100644 (file)
@@ -128,7 +128,7 @@ function get_link_to_edit( $link_id ) {
  * @return unknown
  */
 function wp_insert_link( $linkdata, $wp_error = false ) {
-       global $wpdb, $current_user;
+       global $wpdb;
 
        $defaults = array( 'link_id' => 0, 'link_name' => '', 'link_url' => '', 'link_rating' => 0 );
 
@@ -166,7 +166,7 @@ function wp_insert_link( $linkdata, $wp_error = false ) {
                $link_visible = 'Y';
 
        if ( empty( $link_owner ) )
-               $link_owner = $current_user->id;
+               $link_owner = get_current_user_id();
 
        if ( empty( $link_notes ) )
                $link_notes = '';