mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
In is_user_option_local()
, $user_id
is set conditionally, but never used.
See #27882. Built from https://develop.svn.wordpress.org/trunk@28551 git-svn-id: http://core.svn.wordpress.org/trunk@28377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dd25ef25d9
commit
fcd6920bb8
@ -2078,11 +2078,9 @@ function is_user_option_local( $key, $user_id = 0, $blog_id = 0 ) {
|
|||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
||||||
$current_user = wp_get_current_user();
|
$current_user = wp_get_current_user();
|
||||||
if ( $user_id == 0 )
|
if ( $blog_id == 0 ) {
|
||||||
$user_id = $current_user->ID;
|
|
||||||
if ( $blog_id == 0 )
|
|
||||||
$blog_id = $wpdb->blogid;
|
$blog_id = $wpdb->blogid;
|
||||||
|
}
|
||||||
$local_key = $wpdb->get_blog_prefix( $blog_id ) . $key;
|
$local_key = $wpdb->get_blog_prefix( $blog_id ) . $key;
|
||||||
|
|
||||||
if ( isset( $current_user->$local_key ) )
|
if ( isset( $current_user->$local_key ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user