Skip to:
Content

bbPress.org

Changeset 3689


Ignore:
Timestamp:
01/22/2012 01:04:58 AM (8 years ago)
Author:
johnjamesjacoby
Message:

Move 'bbp_setup_current_user' action off of 'bbp_init' and onto 'set_current_user.' See #1722.

Location:
branches/plugin/bbp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-core-hooks.php

    r3685 r3689  
    4848add_action( 'template_redirect',      'bbp_template_redirect',      10 );
    4949add_filter( 'template_include',       'bbp_template_include',       10 );
     50add_action( 'set_current_user',       'bbp_setup_current_user',     10 );
    5051
    5152/**
     
    7172add_action( 'bbp_init', 'bbp_load_textdomain',        2   );
    7273add_action( 'bbp_init', 'bbp_setup_option_filters',   4   );
    73 add_action( 'bbp_init', 'bbp_setup_current_user',     6   );
    7474add_action( 'bbp_init', 'bbp_setup_theme_compat',     8   );
    7575add_action( 'bbp_init', 'bbp_register_post_types',    10  );
     
    641641}
    642642
    643 /** Supplemental Actions ******************************************************/
    644 
    645643/**
    646644 * Setup the currently logged-in user
     
    654652}
    655653
     654/** Supplemental Actions ******************************************************/
     655
    656656/**
    657657 * Load translations for current language
  • branches/plugin/bbp-includes/bbp-user-functions.php

    r3633 r3689  
    12801280 * @uses bbp_is_user_active() To check if user is active
    12811281 *
    1282  * @param int $user_id The user ID to check
     1282 * @param int $user_id The user ID to check. Defaults to current user ID
    12831283 * @return bool True if inactive, false if active
    12841284 */
Note: See TracChangeset for help on using the changeset viewer.