Make WordPress Core

Changeset 2901


Ignore:
Timestamp:
09/21/2005 04:32:05 PM (21 years ago)
Author:
ryan
Message:

Populate link_owner. Props donncha. fixes #1695

File:
1 edited

Legend:

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

    r2890 r2901  
    566566
    567567function wp_insert_link($linkdata) {
    568         global $wpdb;
     568        global $wpdb, $current_user;
    569569       
    570570        extract($linkdata);
    … …  
    581581
    582582        if ( empty($link_visible) )
    583                 $link_visible = 'Y';   
     583                $link_visible = 'Y';
     584               
     585        if ( empty($link_owner) )
     586                $link_owner = $current_user->id;
    584587       
    585588        if ( $update ) {
Note: See TracChangeset for help on using the changeset viewer.