Changeset 5248 for trunk/wp-includes/functions.php
- Timestamp:
- 04/12/2007 02:27:12 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r5240 r5248 230 230 if( is_object( $row) ) { // Has to be get_row instead of get_var because of funkiness with 0, false, null values 231 231 $value = $row->option_value; 232 wp_cache_ set($setting, $value, 'options');232 wp_cache_add($setting, $value, 'options'); 233 233 } else { // option does not exist, so we must cache its non-existence 234 234 $notoptions[$setting] = true; … … 295 295 foreach ( (array) $alloptions_db as $o ) 296 296 $alloptions[$o->option_name] = $o->option_value; 297 wp_cache_ set('alloptions', $alloptions, 'options');297 wp_cache_add('alloptions', $alloptions, 'options'); 298 298 } 299 299 return $alloptions;
Note: See TracChangeset
for help on using the changeset viewer.