Skip to:
Content

bbPress.org

Changeset 4303


Ignore:
Timestamp:
11/02/2012 07:28:43 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Capabilities:

  • Introduce 'bbp_profile_update' sub-action.
  • Use in place of piggy-backed admin user profile actions.
  • See #1939.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core/actions.php

    r4276 r4303  
    3838 *           v--WordPress Actions        v--bbPress Sub-actions
    3939 */
    40 add_action( 'plugins_loaded',           'bbp_loaded',                   10 );
    41 add_action( 'init',                     'bbp_init',                     0  ); // Early for bbp_register
    42 add_action( 'parse_query',              'bbp_parse_query',              2  ); // Early for overrides
    43 add_action( 'widgets_init',             'bbp_widgets_init',             10 );
    44 add_action( 'generate_rewrite_rules',   'bbp_generate_rewrite_rules',   10 );
    45 add_action( 'wp_enqueue_scripts',       'bbp_enqueue_scripts',          10 );
    46 add_action( 'wp_head',                  'bbp_head',                     10 );
    47 add_action( 'wp_footer',                'bbp_footer',                   10 );
    48 add_action( 'set_current_user',         'bbp_setup_current_user',       10 );
    49 add_action( 'setup_theme',              'bbp_setup_theme',              10 );
    50 add_action( 'after_setup_theme',        'bbp_after_setup_theme',        10 );
    51 add_action( 'template_redirect',        'bbp_template_redirect',        10 );
    52 add_action( 'login_form_login',         'bbp_login_form_login',         10 );
    53 add_action( 'edit_user_profile_update', 'bbp_edit_user_profile_update', 10 );
     40add_action( 'plugins_loaded',           'bbp_loaded',                   10    );
     41add_action( 'init',                     'bbp_init',                     0     ); // Early for bbp_register
     42add_action( 'parse_query',              'bbp_parse_query',              2     ); // Early for overrides
     43add_action( 'widgets_init',             'bbp_widgets_init',             10    );
     44add_action( 'generate_rewrite_rules',   'bbp_generate_rewrite_rules',   10    );
     45add_action( 'wp_enqueue_scripts',       'bbp_enqueue_scripts',          10    );
     46add_action( 'wp_head',                  'bbp_head',                     10    );
     47add_action( 'wp_footer',                'bbp_footer',                   10    );
     48add_action( 'set_current_user',         'bbp_setup_current_user',       10    );
     49add_action( 'setup_theme',              'bbp_setup_theme',              10    );
     50add_action( 'after_setup_theme',        'bbp_after_setup_theme',        10    );
     51add_action( 'template_redirect',        'bbp_template_redirect',        10    );
     52add_action( 'login_form_login',         'bbp_login_form_login',         10    );
     53add_action( 'profile_update',           'bbp_profile_update',           10, 2 ); // user_id and old_user_data
     54add_action( 'user_register',            'bbp_user_register',            10    );
    5455
    5556/**
     
    7778 */
    7879add_action( 'bbp_init', 'bbp_register',         0   );
     80add_action( 'bbp_init', 'bbp_add_forums_roles', 1   );
    7981add_action( 'bbp_init', 'bbp_add_rewrite_tags', 20  );
    8082add_action( 'bbp_init', 'bbp_ready',            999 );
     
    224226
    225227// User capabilities
    226 add_action( 'bbp_edit_user_profile_update', 'bbp_edit_user_profile_update_capabilities' );
     228add_action( 'bbp_profile_update', 'bbp_profile_update_capabilities' );
    227229
    228230// Hook WordPress admin actions to bbPress profiles on save
Note: See TracChangeset for help on using the changeset viewer.