deliciousbrains / wp-migrate-db

WordPress plugin that exports your database, does a find and replace on URLs and file paths, then allows you to save it to your computer.
https://wordpress.org/plugins/wp-migrate-db/
341 stars 513 forks source link

Does not handle serialized objects #11

Closed bradt closed 11 years ago

bradt commented 11 years ago

Some plugins store serialized objects in the database, but this plugin currently only handles serialized arrays. An example, is the GD Star Rating plugin, which stores a serialized object containing URL strings that need replacing in a migration.

bradt commented 11 years ago

This looks like very good code to handle this: https://github.com/wp-cli/wp-cli/blob/master/php/utils.php#L226