From d9eea55f2775796ed33543d9e7f99df15deb3e83 Mon Sep 17 00:00:00 2001
From: Paul Biron <paul@sparrowhawkcomputing.com>
Date: Mon, 21 Aug 2017 10:47:24 -0600
Subject: [PATCH] allow update of link_owner
---
src/wp-admin/includes/bookmark.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/wp-admin/includes/bookmark.php b/src/wp-admin/includes/bookmark.php
index cd952a7..72375cb 100644
a
|
b
|
function wp_insert_link( $linkdata, $wp_error = false ) { |
195 | 195 | } |
196 | 196 | |
197 | 197 | if ( $update ) { |
198 | | if ( false === $wpdb->update( $wpdb->links, compact( 'link_url', 'link_name', 'link_image', 'link_target', 'link_description', 'link_visible', 'link_rating', 'link_rel', 'link_notes', 'link_rss' ), compact( 'link_id' ) ) ) { |
| 198 | if ( false === $wpdb->update( $wpdb->links, compact( 'link_url', 'link_name', 'link_image', 'link_target', 'link_description', 'link_visible', 'link_owner', 'link_rating', 'link_rel', 'link_notes', 'link_rss' ), compact( 'link_id' ) ) ) { |
199 | 199 | if ( $wp_error ) { |
200 | 200 | return new WP_Error( 'db_update_error', __( 'Could not update link in the database' ), $wpdb->last_error ); |
201 | 201 | } else { |