Ticket #7416 (closed defect (bug): fixed)

Opened 4 years ago

Last modified 2 years ago

SQL typo in wp-admin/includes/user.php

Reported by: docwhat Owned by: anonymous
Priority: high Milestone: 2.6.1
Component: Administration Version: 2.6
Severity: normal Keywords: has-patch
Cc:

Description

On line 262 of wp-admin/include/user.php there is a trailing } in the SQL.

The line reads:

        $wpdb->query( $wpdb->prepare("UPDATE $wpdb->links SET link_owner = %d WHERE link_owner = %d}", $reassign, $id) );

But should be:

        $wpdb->query( $wpdb->prepare("UPDATE $wpdb->links SET link_owner = %d WHERE link_owner = %d", $reassign, $id) );

Ciao!

Attachments

wp-user-sql.patch Download (757 bytes) - added by docwhat 4 years ago.

Change History

docwhat4 years ago

  • Status changed from new to closed
  • Resolution set to fixed

(In [8467]) Remove extra } from query. Fixes #7416 for trunk.

  • Status changed from closed to reopened
  • Version set to 2.6
  • Resolution fixed deleted
  • Milestone changed from 2.7 to 2.6.1

Reopen for 2.6.1

  • Status changed from reopened to closed
  • Resolution set to fixed

(In [8468]) Remove extra } from query. Fixes #7416 for 2.6.1. Props docwhat.

Note: See TracTickets for help on using tickets.