Ticket #27935: option.php.patch
File option.php.patch, 668 bytes (added by , 11 years ago) |
---|
-
wp-includes/option.php
967 967 $row = $wpdb->get_row( $wpdb->prepare("SELECT meta_value FROM $wpdb->sitemeta WHERE meta_key = %s AND site_id = %d", $option, $wpdb->siteid ) ); 968 968 969 969 // Has to be get_row instead of get_var because of funkiness with 0, false, null values 970 if ( is_object( $row ) ) {970 if ( is_object( $row ) && $row->meta_value !== '' ) { 971 971 $value = $row->meta_value; 972 972 $value = maybe_unserialize( $value ); 973 973 wp_cache_set( $cache_key, $value, 'site-options' );