mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 20:24:26 +00:00
Add blog_id to the wp-settings-* cookie (used for storing user state) to prevent it being overloaded on sub-domain sites. Fixes #29095.
git-svn-id: https://develop.svn.wordpress.org/trunk@29362 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -72,7 +72,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
$scripts->add( 'utils', "/wp-includes/js/utils$suffix.js" );
|
||||
did_action( 'init' ) && $scripts->localize( 'utils', 'userSettings', array(
|
||||
'url' => (string) SITECOOKIEPATH,
|
||||
'uid' => (string) get_current_user_id(),
|
||||
'uid' => get_current_user_id() . '-' . get_current_blog_id(),
|
||||
'time' => (string) time(),
|
||||
) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user