Migrating Widget Settings in WordPress

我的未来我决定 提交于 2019-12-05 13:02:40
markratledge

Wordpress stores widget options - and some plugins and themes also store their options - as serialized data, and so you have to be more careful than a full find/replace of the URLs.

Much more comprehensive answer and some other ways to do move databases and retain serialized data: https://wordpress.stackexchange.com/questions/9076/why-is-my-database-import-losing-text-widget-data

To move a wordpress site and to reconvert all serialized data I used this script. the using is very simple, download the script, change the credential variable to the database inside the php script and run it.

link to download the script: http://davidcoveney.com/575/php-serialization-fix-for-wordpress-migrations/

work fine.

Don't do it manually!

Dont edit database manually when migrating between different domains!
Use small scripts, like this: Wordpress-Migrator.php (read description too.)

because SERIALIZED arrays needs to be modified specifically too!!!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!