Populate link_owner. Props donncha. fixes #1695
git-svn-id: https://develop.svn.wordpress.org/trunk@2901 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0bd0cd8b33
commit
e17afbcfa8
@ -565,7 +565,7 @@ function edit_link($link_id = '') {
|
||||
}
|
||||
|
||||
function wp_insert_link($linkdata) {
|
||||
global $wpdb;
|
||||
global $wpdb, $current_user;
|
||||
|
||||
extract($linkdata);
|
||||
|
||||
@ -580,7 +580,10 @@ function wp_insert_link($linkdata) {
|
||||
$link_target = '';
|
||||
|
||||
if ( empty($link_visible) )
|
||||
$link_visible = 'Y';
|
||||
$link_visible = 'Y';
|
||||
|
||||
if ( empty($link_owner) )
|
||||
$link_owner = $current_user->id;
|
||||
|
||||
if ( $update ) {
|
||||
$wpdb->query("UPDATE $wpdb->links SET link_url='$link_url',
|
||||
|
Loading…
x
Reference in New Issue
Block a user