Changeset 3071
- Timestamp:
- 11/14/05 09:08:27 (3 years ago)
- Files:
-
- trunk/wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/functions.php
r3068 r3071 268 268 if ( defined('WP_INSTALLING') ) 269 269 $wpdb->hide_errors(); 270 $ value = $wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = '$setting' LIMIT 1");270 $row = $wpdb->get_row("SELECT option_value FROM $wpdb->options WHERE option_name = '$setting' LIMIT 1"); 271 271 if ( defined('WP_INSTALLING') ) 272 272 $wpdb->show_errors(); 273 273 274 if( $value ) 274 if( is_object( $row) ) { // Has to be get_row instead of get_var because of funkiness with 0, false, null values 275 $value = $row->option_value; 275 276 wp_cache_set($setting, $value, 'options'); 276 else277 } else { 277 278 return false; 279 } 278 280 } 279 281
