WordPress.org

Making WordPress.org

Changeset 4942


Ignore:
Timestamp:
02/19/2017 04:41:30 PM (4 years ago)
Author:
ocean90
Message:

Login: Fix missing user ID for user meta updates.

See #148.

File:
1 edited

Legend:

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

    r4534 r4942  
    55        return false;
    66    }
    7    
     7
    88    $verify = array(
    99        'secret'   => RECAPTCHA_PRIVKEY,
     
    5353        update_user_meta( $user_id, 'notify_list', 'true' );
    5454    }
    55    
     55
    5656    $body  = sprintf( __( 'Hi %s,', 'wporg-login' ), $user_login ) . "\n\n";
    5757    $body .= __( 'Welcome to WordPress.org! Your new account has been setup.', 'wporg-login' ) . "\n";
     
    9292                wp_update_user( array(
    9393                    'ID' => get_current_user_id(),
    94                     'user_url' => esc_url_raw( $value )
     94                    'user_url' => esc_url_raw( $value ),
    9595                ) );
    9696            } else {
    97                 update_user_meta( $user->ID, $field, $value );
     97                update_user_meta( get_current_user_id(), $field, $value );
    9898            }
    9999        }
Note: See TracChangeset for help on using the changeset viewer.