Changeset 6762
- Timestamp:
- 12/30/2017 06:15:53 AM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/core/options.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/options.php
r6761 r6762 264 264 265 265 // Maybe intercept 266 $strategy = 'notoptions';266 $strategy = apply_filters( 'bbp_pre_load_options_strategy', 'notoptions' ); 267 267 $intercept = bbp_maybe_intercept( __FUNCTION__, $strategy ); 268 268 if ( bbp_is_intercepted( $intercept ) ) { … … 298 298 299 299 // Cache to notoptions 300 if ( 'notoptions' === $ intercept) {300 if ( 'notoptions' === $strategy ) { 301 301 $not_options[ $option ] = true; 302 302 wp_cache_set( 'notoptions', $not_options, 'options' ); 303 303 304 304 // Cache to option 305 } elseif ( 'option' === $ intercept) {305 } elseif ( 'option' === $strategy ) { 306 306 wp_cache_set( $option, $value, 'options' ); 307 307 }
Note: See TracChangeset
for help on using the changeset viewer.