-
Notifications
You must be signed in to change notification settings - Fork 31
Reset folder #219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset folder #219
Conversation
cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-media.php
Outdated
Show resolved
Hide resolved
dugajean
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Works as expected. Left a few comments to check out before moving forward. 👍
| * | ||
| * @return bool | ||
| */ | ||
| && ! apply_filters( 'cloudinary_doing_upload', false ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small correction here:
| && ! apply_filters( 'cloudinary_doing_upload', false ) | |
| && apply_filters( 'cloudinary_doing_upload', false ) |
Otherwise we default to true. Thanks for addressing this 😁
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default should be true. We should almost always resolve to serve the Cloudinary. However, in the case of uploading, we should bail any change.
DavidCramer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. It's a nice addition.
Allows pushing an asset update — either via
Re-sync to Cloudinaryor the bulk actionPush to Cloudinary— that resets the location of the asset in Cloudinary account to the folder set in WordPress.