mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 02:49:04 +01:00
Continuation to [10060] to have both get_ and update_ use same $check_global setting. Coding style updates.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10083 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
56935938b0
commit
a04000fdcc
@ -688,8 +688,8 @@ function wp_user_settings() {
|
||||
$saved = isset( $_COOKIE['wp-settings-time-' . $user->ID]) ? preg_replace( '/[^0-9]/', '', $_COOKIE['wp-settings-time-' . $user->ID] ) : 0;
|
||||
|
||||
if ( $saved > $last_time ) {
|
||||
update_user_option( $user->ID, 'user-settings', $cookie, true );
|
||||
update_user_option( $user->ID, 'user-settings-time', time() - 5, true );
|
||||
update_user_option( $user->ID, 'user-settings', $cookie, false );
|
||||
update_user_option( $user->ID, 'user-settings-time', time() - 5, false );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user