Making WordPress.org

Changeset 3808


Ignore:
Timestamp:
08/15/2016 04:01:02 PM (8 years ago)
Author:
iandunn
Message:

WordCamp Participation Notifier: Send user for activity instead of user_id.

user is expected for activity notifications as of r3776 and r3806.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-participation-notifier/wordcamp-participation-notifier.php

    r3750 r3808  
    206206
    207207        if ( $user_id ) {
     208            $user = get_user_by( 'id', $user_id );  // todo This is a temporary workaround for r3806 until everything can be refactored
     209
    208210            $activity = array(
    209211                'action'        => 'wporg_handle_activity',
    210212                'source'        => 'wordcamp',
    211213                'timestamp'     => strtotime( $post->post_modified_gmt ),
    212                 'user_id'       => $user_id,
     214                'user'          => $user->user_login,
    213215                'wordcamp_id'   => get_current_blog_id(),
    214216                'wordcamp_name' => get_wordcamp_name(),
Note: See TracChangeset for help on using the changeset viewer.