Make user settings global
git-svn-id: http://svn.automattic.com/wordpress/trunk@9444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f8090206fa
commit
bfb90a6922
|
@ -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;
|
$saved = isset($_COOKIE['wp-settings-time-'.$user->ID]) ? preg_replace( '/[^0-9]/', '', $_COOKIE['wp-settings-time-'.$user->ID] ) : 0;
|
||||||
|
|
||||||
if ( $saved > $last_time ) {
|
if ( $saved > $last_time ) {
|
||||||
update_user_option( $user->ID, 'user-settings', $cookie );
|
update_user_option( $user->ID, 'user-settings', $cookie, true );
|
||||||
update_user_option( $user->ID, 'user-settings-time', time() - 5 );
|
update_user_option( $user->ID, 'user-settings-time', time() - 5, true );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue