Changeset 11589
- Timestamp:
- 06/15/2017 02:26:28 PM (8 years ago)
- Location:
- trunk/src/bp-core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-actions.php
r11032 r11589 56 56 add_action( 'bp_loaded', 'bp_setup_components', 2 ); 57 57 add_action( 'bp_loaded', 'bp_include', 4 ); 58 add_action( 'bp_loaded', 'bp_setup_option_filters', 5 ); 58 59 add_action( 'bp_loaded', 'bp_setup_cache_groups', 5 ); 59 60 add_action( 'bp_loaded', 'bp_setup_widgets', 6 ); -
trunk/src/bp-core/bp-core-options.php
r11549 r11589 189 189 * Add filters to each BP option, allowing them to be overloaded from inside the $bp->options array. 190 190 * 191 * Currently unused.192 *193 191 * @since 1.6.0 194 192 */ … … 216 214 * Filter default options and allow them to be overloaded from inside the $bp->options array. 217 215 * 218 * Currently unused.219 *220 216 * @since 1.6.0 221 217 * … … 226 222 $bp = buddypress(); 227 223 228 // Get the name of the current filter so we can manipulate it.229 $filter = current_filter();230 231 224 // Remove the filter prefix. 232 $option = str_replace( 'pre_option_', '', $filter);225 $option = str_replace( 'pre_option_', '', current_filter() ); 233 226 234 227 // Check the options global for preset value.
Note: See TracChangeset
for help on using the changeset viewer.