Changeset 10950
- Timestamp:
- 07/20/2016 06:20:32 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-cache.php
r10497 r10950 116 116 */ 117 117 function bp_core_clear_root_options_cache( $option ) { 118 foreach ( array( 'add_option', 'add_site_option', 'update_option', 'update_site_option' ) as $action ) { 119 remove_action( $action, 'bp_core_clear_root_options_cache' ); 120 } 121 122 // Surrounding code prevents infinite loops on WP < 4.4. 118 123 $keys = array_keys( bp_get_default_options() ); 124 125 foreach ( array( 'add_option', 'add_site_option', 'update_option', 'update_site_option' ) as $action ) { 126 add_action( $action, 'bp_core_clear_root_options_cache' ); 127 } 128 119 129 $keys = array_merge( $keys, array( 120 130 'registration',
Note: See TracChangeset
for help on using the changeset viewer.