Making WordPress.org

Changeset 14327


Ignore:
Timestamp:
12/20/2024 12:10:56 PM (5 weeks ago)
Author:
dd32
Message:

Login: Set the cookie super global, when we call setcookie().

Missed from [14325].

File:
1 edited

Legend:

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

    r14124 r14327  
    574574    }
    575575
    576     setcookie( 'wporg_came_from', $came_from, time() + 30*MINUTE_IN_SECONDS, '/', WPOrg_SSO::get_instance()->get_cookie_host(), true, true );
     576    setcookie( 'wporg_came_from', $came_from, time() + 30 * MINUTE_IN_SECONDS, '/', WPOrg_SSO::get_instance()->get_cookie_host(), true, true );
     577
     578    $_COOKIE['wporg_came_from'] = $came_from;
    577579}
    578580add_action( 'init', 'wporg_remember_where_user_came_from' );
Note: See TracChangeset for help on using the changeset viewer.