@@ 569-572 (lines=4) @@ | ||
566 | } |
|
567 | ||
568 | function upsert_user( $user ) { |
|
569 | if ( isset( $user->allowed_mime_types ) ) { |
|
570 | $this->allowed_mime_types[ get_current_blog_id() ][ $user->ID ] = $user->allowed_mime_types; |
|
571 | unset( $user->allowed_mime_types ); |
|
572 | } |
|
573 | // when doing a full sync |
|
574 | if ( isset( $user->data->allowed_mime_types ) ) { |
|
575 | $this->allowed_mime_types[ get_current_blog_id() ][ $user->ID ] = $user->data->allowed_mime_types; |
|
@@ 574-577 (lines=4) @@ | ||
571 | unset( $user->allowed_mime_types ); |
|
572 | } |
|
573 | // when doing a full sync |
|
574 | if ( isset( $user->data->allowed_mime_types ) ) { |
|
575 | $this->allowed_mime_types[ get_current_blog_id() ][ $user->ID ] = $user->data->allowed_mime_types; |
|
576 | unset( $user->data->allowed_mime_types ); |
|
577 | } |
|
578 | ||
579 | if ( isset( $user->data->locale ) ) { |
|
580 | $this->users_locale[ get_current_blog_id() ][ $user->ID ] = $user->data->locale; |