Changeset 10899 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-registration.php
- Timestamp:
- 04/14/2021 03:56:53 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-registration.php
r10893 r10899 80 80 * Handles creating a "Pending" registration that will later be converted to an actual user account. 81 81 */ 82 function wporg_login_create_pending_user( $user_login, $user_email, $user_mailinglist = false ) {82 function wporg_login_create_pending_user( $user_login, $user_email, $user_mailinglist = false, $tos_revision = 0 ) { 83 83 global $wpdb, $wp_hasher; 84 84 … … 97 97 $profile_key = wp_generate_password( 24, false, false ); 98 98 $hashed_profile_key = time() . ':' . wp_hash_password( $profile_key ); 99 100 $tos_meta_key = WPOrg_SSO::TOS_USER_META_KEY; 99 101 100 102 $pending_user = array( … … 107 109 'user_mailinglist' => $user_mailinglist, 108 110 'registration_ip' => $_SERVER['REMOTE_ADDR'], // Spam & fraud control. Will be discarded after the account is created. 111 $tos_meta_key => $tos_revision, 109 112 ), 110 113 'scores' => array() … … 289 292 } 290 293 291 foreach ( array( 'url', 'from', 'occ', 'interests' ) as $field ) { 294 $tos_meta_key = WPOrg_SSO::TOS_USER_META_KEY; 295 296 foreach ( array( 'url', 'from', 'occ', 'interests', $tos_meta_key ) as $field ) { 292 297 if ( !empty( $pending_user['meta'][ $field ] ) ) { 293 298 $value = $pending_user['meta'][ $field ];
Note: See TracChangeset
for help on using the changeset viewer.