Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/22/2012 08:00:55 AM (10 years ago)
Author:
johnjamesjacoby
Message:

User Options:

  • Introduce bbp-user-options.php to handle all user option related code.
  • Add $user_options array to main bbPress class to allow for easy, static, per-user option overrides.
  • Tweak action order for option and user_option overrides in bbp-core-hooks.php.
  • Replace all appropriate user_meta calls with user_option calls to automatically prefix keys with blog ID.
  • Update favorites, subscriptions, and topic/reply count option keys to be per-blog in multisite configurations.
  • Fixes #1826.
File:
1 edited

Legend:

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

    r3830 r3911  
    5959 * Attach various loader actions to the bbp_loaded action.
    6060 * The load order helps to execute code at the correct time.
    61  *                                                        v---Load order
    62  */
    63 add_action( 'bbp_loaded', 'bbp_constants',                2  );
    64 add_action( 'bbp_loaded', 'bbp_boot_strap_globals',       4  );
    65 add_action( 'bbp_loaded', 'bbp_includes',                 6  );
    66 add_action( 'bbp_loaded', 'bbp_setup_globals',            8  );
    67 add_action( 'bbp_loaded', 'bbp_register_theme_directory', 10 );
    68 add_action( 'bbp_loaded', 'bbp_register_theme_packages',  12 );
     61 *                                                         v---Load order
     62 */
     63add_action( 'bbp_loaded', 'bbp_constants',                 2  );
     64add_action( 'bbp_loaded', 'bbp_boot_strap_globals',        4  );
     65add_action( 'bbp_loaded', 'bbp_includes',                  6  );
     66add_action( 'bbp_loaded', 'bbp_setup_globals',             8  );
     67add_action( 'bbp_loaded', 'bbp_setup_option_filters',      10 );
     68add_action( 'bbp_loaded', 'bbp_setup_user_option_filters', 12 );
     69add_action( 'bbp_loaded', 'bbp_register_theme_directory',  14 );
     70add_action( 'bbp_loaded', 'bbp_register_theme_packages',   16 );
    6971
    7072/**
     
    7678 */
    7779add_action( 'bbp_init', 'bbp_load_textdomain',         2   );
    78 add_action( 'bbp_init', 'bbp_setup_option_filters',    4   );
    7980add_action( 'bbp_init', 'bbp_register_post_types',     10  );
    8081add_action( 'bbp_init', 'bbp_register_post_statuses',  12  );
Note: See TracChangeset for help on using the changeset viewer.