有没有办法恢复 WordPress 更新?
我刚刚升级到新版本的 WordPress,丢失了在编辑器中对网站所做的所有更改。我在 style.css 文件中所做的所有更改都消失了。
有没有办法恢复或恢复这些编辑?
奇怪的是,wordpress 没有告诉您,如果升级,您可能会丢失所有这些编辑。
I just upgraded to the new version of wordpress and I lost all of the changes that I had made to the site in editor. All the changes I made in the style.css file are gone.
Is there a way to revert or get those edits back?
It is weird that wordpress does not tell you that you could lose all this these edits if you upgrade.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请您的托管提供商回滚最新的备份。
Ask your hosting provider to roll back the latest backup.
这并不奇怪。 WP 的自动更新不会覆盖默认二十十主题以外的主题。这是为了更新默认主题并修复 WP 核心文件。
丢失主题的自定义可能是因为您修改了默认主题而不是为其创建子主题: http://codex .wordpress.org/Child_Themes
如果您将主题文件夹的名称更改为
twentyten
以外的名称,并且更改 style.css 标头中的信息,您也可以安全地修改“二十十”。这将使 WP 无法将主题识别为默认主题并在升级时覆盖它。向您的网络主机请求备份。
It's not weird. WP's auto update will not overwrite a theme other than the default Twenty Ten theme. That's in order to update the default theme with fixes along with WP core files.
Losing customizations to a theme is probably because you modified the default theme rather than make a child theme of it: http://codex.wordpress.org/Child_Themes
You can also safely modify Twenty Ten if you change the name of the theme folder to something other than
twentyten
and also change the info in the style.css header. That will keep WP from recognizing the theme as default and overwriting it on upgrade.Ask your web host for a backup.