WordPress.org

Make WordPress Core

Ticket #38711: 38711.patch

File 38711.patch, 1012 bytes (added by sebastian.pisula, 4 years ago)
  • wp-includes/option.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    825825
    826826        // The cookie is not set in the current browser or the saved value is newer.
    827827        $secure = ( 'https' === parse_url( admin_url(), PHP_URL_SCHEME ) );
    828         setcookie( 'wp-settings-' . $user_id, $settings, time() + YEAR_IN_SECONDS, SITECOOKIEPATH, null, $secure );
    829         setcookie( 'wp-settings-time-' . $user_id, time(), time() + YEAR_IN_SECONDS, SITECOOKIEPATH, null, $secure );
     828        setcookie( 'wp-settings-' . $user_id, $settings, time() + YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN, $secure );
     829        setcookie( 'wp-settings-time-' . $user_id, time(), time() + YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN, $secure );
    830830        $_COOKIE['wp-settings-' . $user_id] = $settings;
    831831}
    832832