﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
13043	get_site_option should use wpdb->get_row	laceous		"get_option uses the following code when pulling data from the database:

{{{
$row = $wpdb->get_row( $wpdb-&gt;prepare( ""SELECT option_value FROM $wpdb-&gt;options WHERE option_name = '%s' LIMIT 1"", $option ) );
// Has to be get_row instead of get_var because of funkiness with 0, false, null values
if ( is_object( $row ) ) {
}}}

get_site_option uses get_var directly which leads to the funkiness that get_option tries to avoid:

{{{
$value = $wpdb-&gt;get_var( $wpdb-&gt;prepare(""SELECT meta_value FROM $wpdb-&gt;sitemeta WHERE meta_key = %s AND site_id = %d"", $option, $wpdb-&gt;siteid ) );
if ( is_null($value) )
  $value = $default;
}}}

get_site_option should use get_row instead of get_var

(This was tested with the latest nightly build)"	defect (bug)	closed	normal	3.0	Multisite	3.0	normal	fixed	has-patch	
