Make user-settings per blog
git-svn-id: https://develop.svn.wordpress.org/trunk@10098 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fc8c54d3d9
commit
3896afcf41
@ -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;
|
$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, true );
|
update_user_option( $user->ID, 'user-settings', $cookie, false );
|
||||||
update_user_option( $user->ID, 'user-settings-time', time() - 5, true );
|
update_user_option( $user->ID, 'user-settings-time', time() - 5, false );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user