Changeset 13588
- Timestamp:
- 04/24/2024 04:47:41 AM (2 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login
- Files:
-
- 2 edited
-
functions-registration.php (modified) (1 diff)
-
functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-registration.php
r13288 r13588 76 76 77 77 $pending_user = array( 78 'user_login' => $user_login,79 'user_email' => $user_email,80 'user_registered' => gmdate('Y-m-d H:i:s'),78 'user_login' => $user_login, 79 'user_email' => $user_email, 80 'user_registered' => gmdate('Y-m-d H:i:s'), 81 81 'user_activation_key' => '', 82 'user_profile_key' => $hashed_profile_key, 83 'meta' => $meta + array( 84 'registration_ip' => $_SERVER['REMOTE_ADDR'], // Spam & fraud control. Will be discarded after the account is created. 85 'registration_ip_country' => ( is_callable( 'WordPressdotorg\GeoIP\query' ) ? \WordPressdotorg\GeoIP\query( $_SERVER['REMOTE_ADDR'], 'country_short' ) : '' ) 82 'user_profile_key' => $hashed_profile_key, 83 'meta' => $meta + array( 84 'registration_ip' => $_SERVER['REMOTE_ADDR'], // Spam & fraud control. Will be discarded after the account is created. 85 'registration_ip_country' => ( is_callable( 'WordPressdotorg\GeoIP\query' ) ? \WordPressdotorg\GeoIP\query( $_SERVER['REMOTE_ADDR'], 'country_short' ) : '' ), 86 'source' => $_COOKIE['wporg_came_from'] ?? '', 86 87 ), 87 'scores' => array(88 'scores' => array( 88 89 'pending' => 1, 89 90 ), -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php
r13363 r13588 567 567 } 568 568 569 setcookie( 'wporg_came_from', $came_from, time() + 10*MINUTE_IN_SECONDS, '/', WPOrg_SSO::get_instance()->get_cookie_host(), true, true );569 setcookie( 'wporg_came_from', $came_from, time() + 30*MINUTE_IN_SECONDS, '/', WPOrg_SSO::get_instance()->get_cookie_host(), true, true ); 570 570 } 571 571 add_action( 'init', 'wporg_remember_where_user_came_from' );
Note: See TracChangeset
for help on using the changeset viewer.