Ticket #18955: 18955.opt3.diff
| File 18955.opt3.diff, 817 bytes (added by duck_, 20 months ago) |
|---|
-
wp-includes/functions.php
3798 3798 $row = $wpdb->get_row( $wpdb->prepare("SELECT meta_value FROM $wpdb->sitemeta WHERE meta_key = %s AND site_id = %d", $option, $wpdb->siteid ) ); 3799 3799 3800 3800 // Has to be get_row instead of get_var because of funkiness with 0, false, null values 3801 if ( is_object( $row ) ) 3801 if ( is_object( $row ) ) { 3802 3802 $value = $row->meta_value; 3803 else 3803 $value = maybe_unserialize( $value ); 3804 wp_cache_set( $cache_key, $value, 'site-options' ); 3805 } else { 3804 3806 $value = $default; 3805 3806 $value = maybe_unserialize( $value ); 3807 3808 wp_cache_set( $cache_key, $value, 'site-options' ); 3807 } 3809 3808 } 3810 3809 } 3811 3810