Make WordPress Core


Ignore:
Timestamp:
08/13/2014 02:46:18 AM (11 years ago)
Author:
azaozz
Message:

Fix the wp-settings-* cookies used in getUserSetting()/setUserSetting(). They should be set without COOKIE_DOMAIN to work properly for sub-domains. Fixes #29095.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r29457 r29478  
    7373    did_action( 'init' ) && $scripts->localize( 'utils', 'userSettings', array(
    7474        'url' => (string) SITECOOKIEPATH,
    75         'uid' => get_current_user_id() . '-' . get_current_blog_id(),
     75        'uid' => (string) get_current_user_id(),
    7676        'time' => (string) time(),
     77        'secure' => (string) ( 'https' === parse_url( site_url(), PHP_URL_SCHEME ) ),
    7778    ) );
    7879
Note: See TracChangeset for help on using the changeset viewer.