Changeset 4208
- Timestamp:
- 09/08/2012 10:46:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bbp-includes/bbp-core-options.php
r4193 r4208 137 137 138 138 // Add default options 139 foreach ( bbp_get_default_options() as $key => $value)139 foreach ( array_keys( bbp_get_default_options() ) as $key ) 140 140 delete_option( $key ); 141 141 … … 156 156 157 157 // Add filters to each bbPress option 158 foreach ( bbp_get_default_options() as $key => $value)158 foreach ( array_keys( bbp_get_default_options() ) as $key ) 159 159 add_filter( 'pre_option_' . $key, 'bbp_pre_get_option' ); 160 160 … … 172 172 */ 173 173 function bbp_pre_get_option( $value = '' ) { 174 $bbp = bbpress();175 174 176 175 // Remove the filter prefix … … 178 177 179 178 // Check the options global for preset value 180 if ( isset( $bbp->options[$option] ) )181 $value = $bbp->options[$option];179 if ( isset( bbpress()->options[$option] ) ) 180 $value = bbpress()->options[$option]; 182 181 183 182 // Always return a value, even if false
Note: See TracChangeset
for help on using the changeset viewer.