Changeset 7405 for trunk/wp-includes/functions.php
- Timestamp:
- 03/19/2008 11:17:23 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r7395 r7405 217 217 if ( false === $value ) { 218 218 if ( defined( 'WP_INSTALLING' ) ) 219 $s how = $wpdb->hide_errors();219 $supress = $wpdb->suppress_errors(); 220 220 // expected_slashed ($setting) 221 221 $row = $wpdb->get_row( "SELECT option_value FROM $wpdb->options WHERE option_name = '$setting' LIMIT 1" ); 222 222 if ( defined( 'WP_INSTALLING' ) ) 223 $wpdb->s how_errors($show);223 $wpdb->suppress_errors($suppress); 224 224 225 225 if ( is_object( $row) ) { // Has to be get_row instead of get_var because of funkiness with 0, false, null values … … 280 280 281 281 if ( !$alloptions ) { 282 $s how = $wpdb->hide_errors();282 $suppress = $wpdb->suppress_errors(); 283 283 if ( !$alloptions_db = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options WHERE autoload = 'yes'" ) ) 284 284 $alloptions_db = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options" ); 285 $wpdb->s how_errors($show);285 $wpdb->suppress_errors($suppress); 286 286 $alloptions = array(); 287 287 foreach ( (array) $alloptions_db as $o )
Note: See TracChangeset
for help on using the changeset viewer.