Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/04/2018 06:31:09 PM (3 years ago)
Author:
johnjamesjacoby
Message:

Engagements: next pass at back-compat for pre-2.6 user strategy.

  • Renames BBP_User_Engagements_Back_Compat to BBP_User_Engagements_User so the approach is more clear.
  • Fill in get_query() method, left todo from r6844.
  • Move active strategy into a preloaded option, default to meta
  • Set active strategy to user on failed auto-upgrade to 2.6 to maintain backwards compatibility
  • Introduces sub-actions to assist with abstracting the engagement strategy setup

Fixes #3211.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/sub-actions.php

    r6814 r6876  
    145145function bbp_setup_current_user() {
    146146    do_action( 'bbp_setup_current_user' );
     147}
     148
     149/**
     150 * Setup the user engagements strategy
     151 *
     152 * @since 2.6.0 bbPress (r6875)
     153 */
     154function bbp_setup_engagements() {
     155    do_action( 'bbp_setup_engagements' );
    147156}
    148157
Note: See TracChangeset for help on using the changeset viewer.