Skip to content

Commit ae82bd4

Browse files
Administration: Allow wp_update_link() to update the link_owner field, for consistency with other link fields.
Props pbiron, valentinbora, nikhilgupte. Fixes #41687. git-svn-id: https://develop.svn.wordpress.org/trunk@47291 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 1911d0d commit ae82bd4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-admin/includes/bookmark.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ function wp_insert_link( $linkdata, $wp_error = false ) {
203203
}
204204

205205
if ( $update ) {
206-
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' ) ) ) {
206+
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' ) ) ) {
207207
if ( $wp_error ) {
208208
return new WP_Error( 'db_update_error', __( 'Could not update link in the database' ), $wpdb->last_error );
209209
} else {

0 commit comments

Comments
 (0)