Skip to content

Conversation

@pereirinha
Copy link
Contributor

This PR introduces 2 new status for assets.

  • downloading — for upgrades from version 1;
  • syncing — for internal upgrade of the asset meta;

@pereirinha pereirinha changed the base branch from master to develop July 17, 2020 11:32
Comment on lines +395 to +396
delete_post_meta( $post->ID, Sync::META_KEYS['syncing'] );
delete_post_meta( $post->ID, Sync::META_KEYS['downloading'] );
Copy link
Contributor

@dugajean dugajean Jul 17, 2020

Choose a reason for hiding this comment

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

These two lines are repeated quite a bit, so maybe it'd be good to extract this into a method 😉

function clear_attachment_status( $attachment_id ) { ... }

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.

Very clean implementation. Approved 👍

@pereirinha pereirinha merged commit 9bffb53 into develop Jul 18, 2020
@pereirinha pereirinha deleted the hotfix/sync-status branch July 18, 2020 07:43
@pereirinha pereirinha mentioned this pull request Aug 28, 2024
@pereirinha pereirinha mentioned this pull request Sep 18, 2024
@pereirinha pereirinha mentioned this pull request Oct 28, 2024
@pereirinha pereirinha mentioned this pull request Dec 3, 2024
@bruckercloud bruckercloud mentioned this pull request Jun 24, 2025
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.

3 participants