Changeset 7904 for trunk/bp-core/bp-core-options.php
- Timestamp:
- 02/17/2014 12:42:05 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-options.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-options.php
r7893 r7904 80 80 81 81 // Force the BuddyBar 82 '_bp_force_buddybar' => false 82 '_bp_force_buddybar' => false, 83 84 /** Legacy theme *********************************************/ 85 86 // Whether to register the bp-default themes directory 87 '_bp_retain_bp_default' => false, 88 89 /** Widgets **************************************************/ 90 'widget_bp_core_login_widget' => false, 91 'widget_bp_core_members_widget' => false, 92 'widget_bp_core_whos_online_widget' => false, 93 'widget_bp_core_recently_active_widget' => false, 94 'widget_bp_groups_widget' => false, 95 'widget_bp_messages_sitewide_notices_widget' => false, 83 96 ); 84 97 … … 89 102 * Add default options when BuddyPress is first activated. 90 103 * 91 * Hooked to bp_activate, it is only called once when BuddyPress is activated. 92 * This is non-destructive, so existing settings will not be overridden. 93 * 94 * Currently unused. 104 * Only called once when BuddyPress is activated. 105 * Non-destructive, so existing settings will not be overridden. 95 106 * 96 107 * @since BuddyPress (1.6.0) … … 106 117 107 118 // Add default options 108 foreach ( $options as $key => $value ) 109 add_option( $key, $value ); 119 foreach ( $options as $key => $value ) { 120 bp_add_option( $key, $value ); 121 } 110 122 111 123 // Allow previously activated plugins to append their own options.
Note: See TracChangeset
for help on using the changeset viewer.