Changeset 14147 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-registration.php
- Timestamp:
- 10/25/2024 02:40:52 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-registration.php
r14122 r14147 74 74 $profile_key = wp_generate_password( 24, false, false ); 75 75 $hashed_profile_key = time() . ':' . wp_hash_password( $profile_key ); 76 77 $source = $_COOKIE['wporg_came_from'] ?? ''; 78 if ( $source ) { 79 $source = remove_query_arg( [ 'SAMLRequest', 'RelayState' ], $source ); 80 } 76 81 77 82 $pending_user = array( … … 84 89 'registration_ip' => $_SERVER['REMOTE_ADDR'], // Spam & fraud control. Will be discarded after the account is created. 85 90 'registration_ip_country' => ( is_callable( 'WordPressdotorg\GeoIP\query' ) ? \WordPressdotorg\GeoIP\query( $_SERVER['REMOTE_ADDR'], 'country_short' ) : '' ), 86 'source' => $ _COOKIE['wporg_came_from'] ?? '',91 'source' => $source, 87 92 ), 88 93 'scores' => array(
Note: See TracChangeset
for help on using the changeset viewer.