博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
wordpress配置_如何在WordPress中配置自动更新
阅读量:2507 次
发布时间:2019-05-11

本文共 2842 字,大约阅读时间需要 9 分钟。

wordpress配置

. Maintenance and security updates are applied in the background when a patch becomes available and someone visits your site. By default, the process only applies when updating minor versions — such as 3.7.0 to 3.7.1 — and takes no longer than 25 seconds. The development team tested more than 111 thousand sites without a failure. You shouldn’t experience any problems.

。 当补丁可用且有人访问您的站点时,将在后台应用维护和安全更新。 默认情况下,该过程仅在将次要版本(例如3.7.0到3.7.1)更新时适用,并且所用时间不超过25秒。 开发团队成功测试了超过111,000个站点。 您应该不会遇到任何问题。

That said, we developers work in binary. Things either work or they don’t; we’ll translate the phrase “shouldn’t fail” to “will inevitably fail at some point”. Automated updates are especially risky if you:

也就是说,我们的开发人员使用二进制文件。 事情要么起作用,要么不起作用; 我们将“不应失败”一词翻译为“在某些时候不可避免地会失败” 。 如果您执行以下操作,则自动更新的风险尤其大:

  • use a large number of dubious plug-ins or complex third-party themes

    使用大量可疑的插件或复杂的第三方主题
  • want to control and manage updates yourself, or

    想要自己控制和管理更新,或者
  • have an especially nervous disposition!

    有一个特别紧张的倾向!

您的网站会出现问题吗? (Will Your Site Be Problematic?)

File permissions, network connectivity and other issues can cause updates to fail. If you have concerns, install the plug-in to help you spot the most obvious problems. After enabling, visit the Update Tester screen from the dashboard.

文件权限,网络连接和其他问题可能导致更新失败。 如果有问题,请安装插件以帮助您发现最明显的问题。 启用后,从仪表板访问Update Tester屏幕。

禁用自动更新 (Disable Automatic Updates)

The WordPress team discourages disabling updates but there are a couple of options should you wish to disobey:

WordPress团队不鼓励禁用更新,但是您有两个选择可以不服从:

  1. Use version control. If WordPress detects Subversion, Git, Mercurial or Bazaar files in the installation folder, plugins folder or any parent folder, it will disable automatic updates.

    使用版本控制。 如果WordPress在安装文件夹,plugins文件夹或任何父文件夹中检测到Subversion,Git,Mercurial或Bazaar文件,它将禁用自动更新。
  2. Alternatively, add the following line to your wp-config.php file in the WordPress root folder:

    或者,将以下行添加到WordPress根文件夹中的wp-config.php文件中:

    define( 'WP_AUTO_UPDATE_CORE', false );

仅启用自动次要更新 (Enable Automated Minor Updates Only)

Automated minor update installation is the default option so you shouldn’t need to do anything. However, if you’ve implemented something clever or unusual, you can explicitly set WP_AUTO_UPDATE_CORE in your wp-config.php file:

自动化的次要更新安装是默认选项,因此您无需执行任何操作。 但是,如果您实施了一些聪明或不寻常的操作,则可以在wp-config.php文件中显式设置WP_AUTO_UPDATE_CORE:

define( 'WP_AUTO_UPDATE_CORE', 'minor' );

启用所有更新 (Enable All Updates)

Do you laugh in the face of danger and tickle the feet of fear? You can enable major and minor automated updates with:

您在危险面前笑并在恐惧的脚上挠痒吗? 您可以通过以下方式启用主要和次要自动更新:

define( 'WP_AUTO_UPDATE_CORE', true );

You’ll never need to hit that ‘Upgrade Now’ button again. That’s assuming everything went well and you still have a working dashboard to log in to!

您再也不需要再次点击“立即升级”按钮。 假设一切正常,您仍然可以使用工作仪表板登录!

翻译自:

wordpress配置

转载地址:http://kdrgb.baihongyu.com/

你可能感兴趣的文章
hdu1215 正整数唯一分解定理应用
查看>>
[BZOJ 3530] [Sdoi2014] 数数 【AC自动机+DP】
查看>>
JS调试debug
查看>>
JS 中的string.lastIndexOf()
查看>>
潜移默化学会WPF(技巧篇)--TextBox相关(一) - AYUI框架 - 博客园
查看>>
Quartz.Net进阶之七:QuartzNet其他的功能简述
查看>>
消息队列
查看>>
WPF进阶教程 - 使用Decorator自定义带三角形的边框
查看>>
SQLServer之FOREIGN KEY约束
查看>>
redis 系列2 知识点概述
查看>>
图像滤镜艺术---图像滤镜晕影调节算法研究
查看>>
Win8Metro(C#)数字图像处理--2.21二值图像腐蚀
查看>>
MVC5 + EF6 入门完整教程
查看>>
SQL Server如何在变长列上存储索引
查看>>
Replication的犄角旮旯(八)-- 订阅与发布异构的问题
查看>>
Sliverlight实例之 绘制扇形和环形图
查看>>
Visual Studio 2012使用水晶报表Crystal Report
查看>>
你不知道的 页面编码,浏览器选择编码,get,post各种乱码由来
查看>>
SQLSERVER PRINT语句的换行
查看>>
Windows 8.1 应用开发 – 触控操作
查看>>