Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2014 08:22:05 PM (13 years ago)
Author:
boonebgorges
Message:

Migrate activity meta functions to the WP metadata API.

See #4551

Props boonebgorges, johnjamesjacoby

File:
1 edited

Legend:

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

    r7756 r7854  
    9696                );
    9797
     98                // Metadata tables for groups component
     99                $meta_tables = array(
     100                        'activity' => $bp->table_prefix . 'bp_activity_meta',
     101                );
     102
    98103                // All globals for activity component.
    99104                // Note that global_tables is included in this array.
    … …  
    102107                        'root_slug'             => isset( $bp->pages->activity->slug ) ? $bp->pages->activity->slug : BP_ACTIVITY_SLUG,
    103108                        'has_directory'         => true,
     109                        'notification_callback' => 'bp_activity_format_notifications',
    104110                        'search_string'         => __( 'Search Activity...', 'buddypress' ),
    105111                        'global_tables'         => $global_tables,
    106                         'notification_callback' => 'bp_activity_format_notifications',
     112                        'meta_tables'           => $meta_tables,
    107113                );
    108114
Note: See TracChangeset for help on using the changeset viewer.