Skip to content
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

Add docs about Media Editor and Azure Storage Account Migration #163

Merged
merged 1 commit into from
May 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,24 @@ If a Storage account is created with the new Azure portal, authentication will f
### Responsive Images in WordPress 4.4
Images uploaded to the Azure Storage service will not automatically receive responsive versions. Images added through the WordPress Media Loader *should* get automatically converted to responsive images when inserted into a post or page. We are investigating options for full support of responsive images in the plugin.

### Media Library Editor
Media editing tools are currently not working. The edited images are not uploaded to Azure Storage. Will be fixed in future releases.

### Azure Storage Account Migration
At the moment, changing the Azure Storage account (and blob URLs) requires to manually update data in the WordPress database.

Data should be updated in these tables:
1. `wp_options` (or `wp-config.php` or Settings > Microsoft Azure): plugin settings
2. `wp_posts`:
- links in `post_content` of pages and posts (rows with `post_type` = `page` or `post`)
- `guid` of rows with `post_type` = `attachment`
4. `wp_postmeta`: `meta_value` of rows with `meta_key` = `_wp_attachment_metadata` or `windows_azure_storage_info`

**Note:** data in `wp_postmeta` is PHP serialized, it cannot be updated with simple search-and-replace. There are multiple ways to do it:
1. Using WP-CLI, detailed instructions [here](https://dba.stackexchange.com/questions/64675/replace-string-within-serialized-data/239923#239923).
2. Directly inside WordPress, using the [Better Search Replace plugin](https://wordpress.org/plugins/better-search-replace/).
3. Using an external tool that supports PHP serialization, like [Search Replace DB](https://github.com/interconnectit/Search-Replace-DB).

## Changelog

A complete listing of all notable changes to Microsoft Azure Storage are documented in [CHANGELOG.md](https://github.com/10up/windows-azure-storage/blob/develop/CHANGELOG.md).
Expand Down