Hard coded table prefix wp_bp_xprofile_data
-
I moved a site to Godaddy, who puts a prefix on the table names, and discovered that ‘wp_bp_xprofile_data’ is hard coded into line 2046 of export-user-data.php:
$user_search->query_from .= " JOIN `wp_bp_xprofile_data ` XP ON XP.user_id = wp_users.ID ";
As a workaround I changed that to:
global $bp, $wpdb; $bp = buddypress(); $user_search->query_from .= " JOIN {$bp->profile->table_name_data} XP ON XP.user_id = {$wpdb->users}.ID ";
So that it’ll look for the correct table.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Hard coded table prefix wp_bp_xprofile_data’ is closed to new replies.