Changeset 6443 for branches/2.3/wp-includes/functions.php
- Timestamp:
- 12/21/2007 01:31:31 AM (18 years ago)
- File:
-
- 1 edited
-
branches/2.3/wp-includes/functions.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/wp-includes/functions.php
r6232 r6443 199 199 if ( false === $value ) { 200 200 if ( defined('WP_INSTALLING') ) 201 $ wpdb->hide_errors();201 $show = $wpdb->hide_errors(); 202 202 $row = $wpdb->get_row("SELECT option_value FROM $wpdb->options WHERE option_name = '$setting' LIMIT 1"); 203 203 if ( defined('WP_INSTALLING') ) 204 $wpdb->show_errors( );204 $wpdb->show_errors($show); 205 205 206 206 if( is_object( $row) ) { // Has to be get_row instead of get_var because of funkiness with 0, false, null values … … 237 237 function get_alloptions() { 238 238 global $wpdb, $wp_queries; 239 $ wpdb->hide_errors();239 $show = $wpdb->hide_errors(); 240 240 if ( !$options = $wpdb->get_results("SELECT option_name, option_value FROM $wpdb->options WHERE autoload = 'yes'") ) { 241 241 $options = $wpdb->get_results("SELECT option_name, option_value FROM $wpdb->options"); 242 242 } 243 $wpdb->show_errors( );243 $wpdb->show_errors($show); 244 244 245 245 foreach ($options as $option) { … … 264 264 265 265 if ( !$alloptions ) { 266 $ wpdb->hide_errors();266 $show = $wpdb->hide_errors(); 267 267 if ( !$alloptions_db = $wpdb->get_results("SELECT option_name, option_value FROM $wpdb->options WHERE autoload = 'yes'") ) 268 268 $alloptions_db = $wpdb->get_results("SELECT option_name, option_value FROM $wpdb->options"); 269 $wpdb->show_errors( );269 $wpdb->show_errors($show); 270 270 $alloptions = array(); 271 271 foreach ( (array) $alloptions_db as $o ) … … 893 893 function is_blog_installed() { 894 894 global $wpdb; 895 $ wpdb->hide_errors();895 $show = $wpdb->hide_errors(); 896 896 $installed = $wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'"); 897 $wpdb->show_errors( );897 $wpdb->show_errors($show); 898 898 899 899 $install_status = !empty( $installed ) ? TRUE : FALSE;
Note: See TracChangeset
for help on using the changeset viewer.