Make WordPress Core


Ignore:
Timestamp:
07/21/2010 08:10:22 PM (14 years ago)
Author:
ryan
Message:

Use get_current_user() and get_current_user_id() instead of global current_user object. Props filofo. fixes #13934 for 3.0.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-admin/includes/bookmark.php

    r13106 r15452  
    129129 */
    130130function wp_insert_link( $linkdata, $wp_error = false ) {
    131     global $wpdb, $current_user;
     131    global $wpdb;
    132132
    133133    $defaults = array( 'link_id' => 0, 'link_name' => '', 'link_url' => '', 'link_rating' => 0 );
     
    167167
    168168    if ( empty( $link_owner ) )
    169         $link_owner = $current_user->id;
     169        $link_owner = get_current_user_id();
    170170
    171171    if ( empty( $link_notes ) )
Note: See TracChangeset for help on using the changeset viewer.