Making WordPress.org


Ignore:
Timestamp:
08/15/2016 03:07:11 PM (10 years ago)
Author:
iandunn
Message:

Profiles Activity Handler: Expect user parameter in WordCamp.org payloads.

Previously the user_id parameter was accepted for WordCamp.org, but all of the other handlers expect user, and r3776 started enforcing that expectation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/profiles.wordpress.org/public_html/wp-content/plugins/wporg-profiles-activity-handler/wporg-profiles-activity-handler.php

    r3776 r3806  
    394394         */
    395395        private function handle_wordcamp_activity() {
    396             $user = get_user_by( 'id', $_POST['user_id'] );
     396            $user = $this->get_user( $_POST['user'] );
    397397            $type = '';
    398398
    399399            if ( ! $user ) {
    400                 return '-1 Activity reported for unrecognized user : ' . sanitize_text_field( $_POST['user_id'] );
     400                return '-1 Activity reported for unrecognized user : ' . sanitize_text_field( $_POST['user'] );
    401401            }
    402402
Note: See TracChangeset for help on using the changeset viewer.