Skip to content

Conversation

@pereirinha
Copy link
Contributor

The syncing status should only be available if the auto-sync feature is enabled.

Comment on lines +925 to +929
if ( ! empty( $settings['sync_media']['auto_sync'] ) && 'on' === $settings['sync_media']['auto_sync'] ) {
return true;
}

return false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could also be:

Suggested change
if ( ! empty( $settings['sync_media']['auto_sync'] ) && 'on' === $settings['sync_media']['auto_sync'] ) {
return true;
}
return false;
return ! empty( $settings['sync_media']['auto_sync'] ) && 'on' === $settings['sync_media']['auto_sync'];

Copy link
Contributor

@dugajean dugajean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@pereirinha pereirinha changed the base branch from master to develop July 27, 2020 11:49
@pereirinha pereirinha merged commit a4812af into develop Jul 27, 2020
@pereirinha pereirinha deleted the hotfix/sync-status branch July 27, 2020 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants