WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#7416 closed defect (bug) (fixed)

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

Reported by: docwhat Owned by:
Milestone: 2.6.1 Priority: high
Severity: normal Version: 2.6
Component: Administration Keywords: has-patch
Focuses: 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 (1)

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

Download all attachments as: .zip

Change History (4)

docwhat6 years ago

comment:1 westi6 years ago

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

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

comment:2 westi6 years ago

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

Reopen for 2.6.1

comment:3 westi6 years ago

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

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

Note: See TracTickets for help on using tickets.