Changeset 6685 for sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/rosetta-roles.php
- Timestamp:
- 02/18/2018 02:54:16 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/rosetta-roles.php
r6684 r6685 399 399 ", $user->ID, $this->gp_locale->slug ) ); 400 400 401 do_action( 'translation_editor_removed', $user ->ID);401 do_action( 'translation_editor_removed', $user ); 402 402 403 403 return true; … … 485 485 486 486 if ( $update ) { 487 do_action( 'translation_editor_updated', $user ->ID);487 do_action( 'translation_editor_updated', $user, $projects_to_add, $projects_to_remove ); 488 488 } else { 489 do_action( 'translation_editor_added', $user ->ID);489 do_action( 'translation_editor_added', $user, $projects_to_add, $projects_to_remove ); 490 490 } 491 491 … … 497 497 * profiles.wordpress.org. 498 498 * 499 * @param int $user_id User ID.500 */ 501 public function update_wporg_profile_badge( $user _id) {499 * @param \WP_User $user The user object of the translation editor. 500 */ 501 public function update_wporg_profile_badge( $user ) { 502 502 $action = 'translation_editor_added' === current_filter() ? 'add' : 'remove'; 503 503 504 $this->notify_profiles_wporg_translation_editor_update( $user _id, $action );504 $this->notify_profiles_wporg_translation_editor_update( $user->ID, $action ); 505 505 } 506 506
Note: See TracChangeset
for help on using the changeset viewer.