Use get_blog_prefix() in another MU function. see #19891.
git-svn-id: https://develop.svn.wordpress.org/trunk@19749 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
844dd38b8f
commit
c647c3494d
@ -1860,7 +1860,7 @@ function is_user_option_local( $key, $user_id = 0, $blog_id = 0 ) {
|
||||
if ( $blog_id == 0 )
|
||||
$blog_id = $wpdb->blogid;
|
||||
|
||||
$local_key = $wpdb->base_prefix . $blog_id . '_' . $key;
|
||||
$local_key = $wpdb->get_blog_prefix( $blog_id ) . $key;
|
||||
|
||||
if ( isset( $current_user->$local_key ) )
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user