Skip to:
Content

bbPress.org

Changeset 6723 for trunk/src/bbpress.php


Ignore:
Timestamp:
10/10/2017 08:40:08 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Engagements: abstract meta strategy into an overload'able class.

This change introduces a class and wrapper function to allow the meta strategy of the new user engagements API to be hot-swapped. This might be helpful on large installations where a dedicated database table makes more sense, or for integrations where features like "Favorites" or "Subscriptions" might already be delegated to other third-party membership plugins. Now, the caller class can be filtered to one that includes custom methods.

See #3068.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/bbpress.php ΒΆ

    r6705 r6723  
    298298        $this->extend         = new stdClass(); // Plugins add data here
    299299        $this->errors         = new WP_Error(); // Feedback
     300
     301        /** Engagements *******************************************************/
     302
     303        $this->engagements    = new BBP_User_Engagements_Meta(); // Meta strategy interface
    300304
    301305        /** Deprecated ********************************************************/
Note: See TracChangeset for help on using the changeset viewer.