Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/26/2014 06:08:03 AM (12 years ago)
Author:
r-a-y
Message:

Messages: Introduces meta table and related cache functions.

This commit alters the messages DB schema to add a meta table, which will
allow plugin developers to record information about a message.

The new message meta functions in bp-messages-functions.php mirrors those
in other BP components (activity, groups, etc.).

The DB version is also bumped to 9181.

See #3083.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-update.php

    r8566 r9182  
    241241                if ( $raw_db_version < 8311 ) {
    242242                        bp_update_to_2_0_1();
     243                }
     244
     245                // 2.2
     246                if ( $raw_db_version < 9181 ) {
     247                        bp_update_to_2_2();
    243248                }
    244249        }
     
    391396
    392397/**
     398 * 2.2.0 update routine.
     399 *
     400 * - Add messages meta table
     401 *
     402 * @since BuddyPress (2.2.0)
     403 */
     404function bp_update_to_2_2() {
     405        if ( bp_is_active( 'messages' ) ) {
     406                bp_core_install_private_messaging();
     407        }
     408}
     409
     410/**
    393411 * Redirect user to BP's What's New page on first page load after activation.
    394412 *
Note: See TracChangeset for help on using the changeset viewer.