Making WordPress.org


Ignore:
Timestamp:
11/07/2022 04:48:44 AM (3 years ago)
Author:
dd32
Message:

Login: Use the new function introduced with [12213] for the hostname to use in Cookies.

This allows for cookies to work in local environments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/pending-profile.php

    r11046 r12217  
    99
    1010// Migrate to cookies.
    11 if ( !empty( $sso::$matched_route_params['profile_user'] ) ) {
    12     setcookie( 'wporg_profile_user', $sso::$matched_route_params['profile_user'], time()+DAY_IN_SECONDS, '/register/', 'login.wordpress.org', true, true );
    13     setcookie( 'wporg_profile_key',  $sso::$matched_route_params['profile_key'],  time()+DAY_IN_SECONDS, '/register/', 'login.wordpress.org', true, true );
     11if ( ! empty( $sso::$matched_route_params['profile_user'] ) ) {
     12    $cookie_host = $sso->get_cookie_host();
     13
     14    setcookie( 'wporg_profile_user', $sso::$matched_route_params['profile_user'], time()+DAY_IN_SECONDS, '/register/', $cookie_host, true, true );
     15    setcookie( 'wporg_profile_key',  $sso::$matched_route_params['profile_key'],  time()+DAY_IN_SECONDS, '/register/', $cookie_host, true, true );
    1416
    1517    wp_safe_redirect( '/register/create-profile' );
Note: See TracChangeset for help on using the changeset viewer.