Skip to:
Content

BuddyPress.org

Changeset 741


Ignore:
Timestamp:
12/15/2008 08:24:20 PM (18 years ago)
Author:
apeatling
Message:

Fixing xprofile extra field fetching so it honors the ability to change the name of the basic and full name fields.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-classes.php

    r735 r741  
    889889                global $wpdb, $bp;
    890890               
    891                 $sql = $wpdb->prepare("SELECT f.id FROM " . $bp['profile']['table_name_fields'] . " AS f, " . $bp['profile']['table_name_groups'] . " AS g WHERE g.name = 'Basic' AND f.parent_id = 0   AND g.id = f.group_id ORDER BY f.id");
     891                $sql = $wpdb->prepare("SELECT f.id FROM " . $bp['profile']['table_name_fields'] . " AS f, " . $bp['profile']['table_name_groups'] . " AS g WHERE g.name = %s AND f.parent_id = 0        AND g.id = f.group_id ORDER BY f.id", get_site_option('bp-xprofile-base-group-name') );
    892892
    893893                if ( !$temp_fields = $wpdb->get_results($sql) )
Note: See TracChangeset for help on using the changeset viewer.