WordPress.org

Make WordPress Core

Changeset 47291


Ignore:
Timestamp:
02/15/2020 01:53:22 AM (2 weeks ago)
Author:
SergeyBiryukov
Message:

Administration: Allow wp_update_link() to update the link_owner field, for consistency with other link fields.

Props pbiron, valentinbora, nikhilgupte.
Fixes #41687.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/bookmark.php

    r46662 r47291  
    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 );
Note: See TracChangeset for help on using the changeset viewer.