Make user settings global

git-svn-id: https://develop.svn.wordpress.org/trunk@9444 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-10-31 20:41:16 +00:00
parent a12700d1c1
commit 802ad67058
1 changed files with 2 additions and 2 deletions

View File

@ -675,8 +675,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 );
update_user_option( $user->ID, 'user-settings-time', time() - 5 );
update_user_option( $user->ID, 'user-settings', $cookie, true );
update_user_option( $user->ID, 'user-settings-time', time() - 5, true );
return;
}
}