In `is_user_option_local()`, `$user_id` is set conditionally, but never used.
See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28551 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7b3181e4ed
commit
285d74a283
|
@ -2078,11 +2078,9 @@ function is_user_option_local( $key, $user_id = 0, $blog_id = 0 ) {
|
|||
global $wpdb;
|
||||
|
||||
$current_user = wp_get_current_user();
|
||||
if ( $user_id == 0 )
|
||||
$user_id = $current_user->ID;
|
||||
if ( $blog_id == 0 )
|
||||
if ( $blog_id == 0 ) {
|
||||
$blog_id = $wpdb->blogid;
|
||||
|
||||
}
|
||||
$local_key = $wpdb->get_blog_prefix( $blog_id ) . $key;
|
||||
|
||||
if ( isset( $current_user->$local_key ) )
|
||||
|
|
Loading…
Reference in New Issue