Making WordPress.org

Changeset 4347


Ignore:
Timestamp:
11/11/2016 10:22:12 AM (8 years ago)
Author:
ocean90
Message:

Rosetta Roles: Store current time when a new editor is added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/rosetta-roles.php

    r4090 r4347  
    452452        $values_to_add = array();
    453453        foreach ( $projects_to_add as $project_id ) {
    454             $values_to_add[] = $wpdb->prepare( '(%d, %d, %s, %s)',
     454            $values_to_add[] = $wpdb->prepare( '(%d, %d, %s, %s, %s)',
    455455                $user->ID,
    456456                $project_id,
    457457                $this->gp_locale->slug,
    458                 'default'
     458                'default',
     459                current_time( 'mysql', 1 )
    459460            );
    460461        }
     
    463464            $wpdb->query( "
    464465                INSERT INTO {$wpdb->wporg_translation_editors}
    465                 (`user_id`,`project_id`, `locale`, `locale_slug`)
     466                (`user_id`,`project_id`, `locale`, `locale_slug`, `date_added`)
    466467                VALUES " . implode( ', ', $values_to_add ) . "
    467468            " );
Note: See TracChangeset for help on using the changeset viewer.