@jeffpaul thanks for this! Definitely looking for the same after the recent WP User Avatar/ProfilePress fiasco. Get ready for thousands of new fans!
Thanks for the link. I’ve never used WP-CLI, and not sure I can anyway. But that code looks ok. I’m sure I can run it some other way.
Tell for newbies: how to use this script to help with that migration. Where put this php file?
Sequence of actions. Thank you.
Hi @neon67,
You can follow these steps to use the above script:
1. Download that script to the wp-content
folder, save it as migrate-wp-user-avatar.php
.
2. Using the command line, change the directory to wp-content
.
3. Run this command: wp eval-file migrate-wp-user-avatar.php
4. Delete the PHP file after avatar data has been migrated.
Hope this helps!
Any chance of getting this built in to the plugin? I know the ProfilePress debacle isn’t your fault but it sure would be good to have this happen automatically. Thanks, Graham
@greyham we’ve discussed it briefly, but need to decide when it runs in the plugin before we craft an update that would include this change. Any insights/feedback you have on when running this sort of script would be ideal would be helpful, thanks!
Thanks Jeffrey. I’ve seen plugins with “Import settings from…” buttons in their settings to import settings from competing plugins; I think that would do.
“Import settings from…” would be great!
I’ve added an enhancement to our backlog to look into this, subscribe to #80 for future updates… thanks!
hi @jeffpaul the script which you gave is not working with WP Multisite, on multisite it only works with parent site but not with the subsites, any idea on how to make this work?
@jeffpaul okay thanks I will do that!