Changeset 15452 for branches/3.0/wp-admin/includes/bookmark.php
- Timestamp:
- 07/21/2010 08:10:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/wp-admin/includes/bookmark.php
r13106 r15452 129 129 */ 130 130 function wp_insert_link( $linkdata, $wp_error = false ) { 131 global $wpdb , $current_user;131 global $wpdb; 132 132 133 133 $defaults = array( 'link_id' => 0, 'link_name' => '', 'link_url' => '', 'link_rating' => 0 ); … … 167 167 168 168 if ( empty( $link_owner ) ) 169 $link_owner = $current_user->id;169 $link_owner = get_current_user_id(); 170 170 171 171 if ( empty( $link_notes ) )
Note: See TracChangeset
for help on using the changeset viewer.