Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/13/2014 03:50:39 AM (12 years ago)
Author:
boonebgorges
Message:

Migrate xprofilemeta functions to the WP metadata API

The case of XProfile metadata is complex, because xprofile groups, fields, and
data all store their metadata in a single table, differentiated by object_type.
This complication requires additional filters on WP's core metadata queries.

See #4551

File:
1 edited

Legend:

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

    r7756 r7862  
    139139        );
    140140
     141        $meta_tables = array(
     142            'xprofile_group' => $bp->table_prefix . 'bp_xprofile_meta',
     143            'xprofile_field' => $bp->table_prefix . 'bp_xprofile_meta',
     144            'xprofile_data'  => $bp->table_prefix . 'bp_xprofile_meta',
     145        );
     146
    141147        $globals = array(
    142148            'slug'                  => BP_XPROFILE_SLUG,
    143149            'has_directory'         => false,
    144150            'notification_callback' => 'xprofile_format_notifications',
    145             'global_tables'         => $global_tables
     151            'global_tables'         => $global_tables,
     152            'meta_tables'           => $meta_tables,
    146153        );
    147154
Note: See TracChangeset for help on using the changeset viewer.