You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
--exclude=<patterns> on wp pollora media migrate (comma-separated), and MediaMigrator::migrate(exclude: [...]): paths matching a pattern (woocommerce_uploads/*, *.zip; * matches across folders) are not copied. MigrationReport::$excluded lists them, and the progress callback receives exclude. Meant for folders of private files (protected downloads, logs, form attachments, backups) that a public disk would serve to anyone
Fixed
migrate sent no Cache-Control with the files it copied, whereas an upload does: a migrated file was served without the long cache header. MediaMigrator takes the header as its third constructor argument, and wp pollora media migrate passes cache_control
migrate ignored the visibility of the source: a private file copied to a disk with a public default became public. The visibility of each file is now sent with the write, in the same request (no second call per file)