Skip to:
Content

bbPress.org

Changeset 4090


Ignore:
Timestamp:
07/14/2012 03:33:54 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Converter:

  • Tweak bbp_user_maybe_convert_pass() with correct meta key.
  • Include missing BBP_Admin() class
  • Fixes #1886 (2.1 branch).
  • Props netweb, xiosen.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/bbp-includes/bbp-user-functions.php

    r4072 r4090  
    14561456
    14571457    // Bail if no user password to convert
    1458     $row = $wpdb->get_row( "SELECT * FROM {$wpdb->users} INNER JOIN {$wpdb->usermeta} ON user_id = ID WHERE meta_key = '_bbp_converter_class' AND user_login = '{$username}' LIMIT 1" );
     1458    $row = $wpdb->get_row( "SELECT * FROM {$wpdb->users} INNER JOIN {$wpdb->usermeta} ON user_id = ID WHERE meta_key = '_bbp_class' AND user_login = '{$username}' LIMIT 1" );
    14591459    if ( empty( $row ) || is_wp_error( $row ) )
    14601460        return;
     1461
     1462    // Setup admin (to include converter)
     1463    require_once( bbpress()->plugin_dir . 'bbp-admin/bbp-admin.php' );
    14611464
    14621465    // Convert password
Note: See TracChangeset for help on using the changeset viewer.