AI助手支持GPT4.0
This plugin has arisen from the requirements of a client who manage many of their WordPress sites via Git repositories on Beanstalk.
此插件源自客户端的要求,该客户端通过Beanstalk上的Git存储库管理许多WordPress网站。
Core WP files are not in the repo, to keep its size down, but plugins and themes are.
核心WP文件不在存储库中,以减小文件的大小,但包含插件和主题文件。
WP upgrades are of course tested on local development and remote staging servers before being run on the production server.
WP升级当然要先在本地开发服务器和远程登台服务器上进行测试,然后才能在生产服务器上运行。
But since plugins and themes are in the repo, ideally they should be upgraded locally for testing, then pushed to Beanstalk.
但是由于插件和主题都在仓库中,因此理想情况下,应该在本地对其进行升级以进行测试,然后再推送到Beanstalk。
Beanstalk in turn deploys the changes to the staging server, and then the production server.
Beanstalk依次将更改部署到登台服务器,然后再部署到生产服务器。 p>
To help maintain this workflow, this plugin tests if the environment is local or not (checking for WP_LOCAL_DEV or searching for “localhost” in $_SERVER['HTTP_HOST']
WP_LOCAL_DEV
$_SERVER['HTTP_HOST']
为帮助维护此工作流,此插件测试环境是否为本地环境(检查 WP_LOCAL_DEV code>或在 $ _ SERVER ['HTTP_HOST'] code中搜索“ localhost” >).>)。If the environment isn’t local, plugin and theme installation, editing and upgrades are disabled.如果环境不是本地环境,则将禁用插件和主题安装,编辑和升级。 p>The following constants can be defined in wp-config.php to override the defaults:可以在 wp-config.php code>中定义以下常量以覆盖默认值: p>SLT_CLC_LOCAL_STRING – The string to search for in $_SERVER['HTTP_HOST'] that will indicate a local development environment. SLT_CLC_LOCAL_STRING code> –在 $ _ SERVER ['HTTP_HOST'] code>中搜索的字符串,它将指示本地开发环境。Default: "localhost"默认值:“ localhost” code> li>SLT_CLC_DISABLE_REMOTE_CORE_UPGRADES – Default: false SLT_CLC_DISABLE_REMOTE_CORE_UPGRADES code> –默认值: false code> li>SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES – This will also disable editing plugin and theme files via the admin interface. SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES code> –这还将通过管理界面禁用编辑插件和主题文件。Default: true默认值: true code> li>SLT_CLC_OUTPUT_NOTICES – Whether to output explanatory notices on the upgrades, themes, and plugins admin pages. SLT_CLC_OUTPUT_NOTICES code> –是否在升级,主题和插件管理页面上输出解释性通知。Default: true默认值: true code> li>SLT_CLC_CORE_NOTICE – Default: "Core upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_CORE_NOTICE code> –默认:“当前已通过Control Live Changes插件在此服务器上禁用核心升级。” code> li>SLT_CLC_PLUGIN_THEME_NOTICE – Default: "Plugin and theme upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_PLUGIN_THEME_NOTICE code> –默认值:“当前通过Control Live Changes插件在此服务器上禁用插件和主题升级。” code> li> ul>An alternative to the SLT_CLC_LOCAL_STRING check for a local environment is the WP_LOCAL_DEV constant. WP_LOCAL_DEV code>常量是 SLT_CLC_LOCAL_STRING code>检查本地环境的替代方法。 This is used by Mark Jaquith in his technique for defining local database connection details in a separate file (http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/).Mark Jaquith在其用于在单独文件(http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/)中定义本地数据库连接详细信息的技术中使用此方法。If WP_LOCAL_DEV is set to true, the SLT_CLC_LOCAL_STRING check is made irrelevant.如果将 WP_LOCAL_DEV code>设置为true,则将使 SLT_CLC_LOCAL_STRING code>检查不相关。 p>Development code hosted at GitHub.托管在 GitHub 上的开发代码。 p>
WP_LOCAL_DEV code>或在 $ _ SERVER ['HTTP_HOST'] code中搜索“ localhost” >).>)。If the environment isn’t local, plugin and theme installation, editing and upgrades are disabled.如果环境不是本地环境,则将禁用插件和主题安装,编辑和升级。 p>The following constants can be defined in wp-config.php to override the defaults:可以在 wp-config.php code>中定义以下常量以覆盖默认值: p>SLT_CLC_LOCAL_STRING – The string to search for in $_SERVER['HTTP_HOST'] that will indicate a local development environment. SLT_CLC_LOCAL_STRING code> –在 $ _ SERVER ['HTTP_HOST'] code>中搜索的字符串,它将指示本地开发环境。Default: "localhost"默认值:“ localhost” code> li>SLT_CLC_DISABLE_REMOTE_CORE_UPGRADES – Default: false SLT_CLC_DISABLE_REMOTE_CORE_UPGRADES code> –默认值: false code> li>SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES – This will also disable editing plugin and theme files via the admin interface. SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES code> –这还将通过管理界面禁用编辑插件和主题文件。Default: true默认值: true code> li>SLT_CLC_OUTPUT_NOTICES – Whether to output explanatory notices on the upgrades, themes, and plugins admin pages. SLT_CLC_OUTPUT_NOTICES code> –是否在升级,主题和插件管理页面上输出解释性通知。Default: true默认值: true code> li>SLT_CLC_CORE_NOTICE – Default: "Core upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_CORE_NOTICE code> –默认:“当前已通过Control Live Changes插件在此服务器上禁用核心升级。” code> li>SLT_CLC_PLUGIN_THEME_NOTICE – Default: "Plugin and theme upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_PLUGIN_THEME_NOTICE code> –默认值:“当前通过Control Live Changes插件在此服务器上禁用插件和主题升级。” code> li> ul>An alternative to the SLT_CLC_LOCAL_STRING check for a local environment is the WP_LOCAL_DEV constant. WP_LOCAL_DEV code>常量是 SLT_CLC_LOCAL_STRING code>检查本地环境的替代方法。 This is used by Mark Jaquith in his technique for defining local database connection details in a separate file (http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/).Mark Jaquith在其用于在单独文件(http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/)中定义本地数据库连接详细信息的技术中使用此方法。If WP_LOCAL_DEV is set to true, the SLT_CLC_LOCAL_STRING check is made irrelevant.如果将 WP_LOCAL_DEV code>设置为true,则将使 SLT_CLC_LOCAL_STRING code>检查不相关。 p>Development code hosted at GitHub.托管在 GitHub 上的开发代码。 p>
$ _ SERVER ['HTTP_HOST'] code中搜索“ localhost” >).>)。If the environment isn’t local, plugin and theme installation, editing and upgrades are disabled.如果环境不是本地环境,则将禁用插件和主题安装,编辑和升级。 p>The following constants can be defined in wp-config.php to override the defaults:可以在 wp-config.php code>中定义以下常量以覆盖默认值: p>SLT_CLC_LOCAL_STRING – The string to search for in $_SERVER['HTTP_HOST'] that will indicate a local development environment. SLT_CLC_LOCAL_STRING code> –在 $ _ SERVER ['HTTP_HOST'] code>中搜索的字符串,它将指示本地开发环境。Default: "localhost"默认值:“ localhost” code> li>SLT_CLC_DISABLE_REMOTE_CORE_UPGRADES – Default: false SLT_CLC_DISABLE_REMOTE_CORE_UPGRADES code> –默认值: false code> li>SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES – This will also disable editing plugin and theme files via the admin interface. SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES code> –这还将通过管理界面禁用编辑插件和主题文件。Default: true默认值: true code> li>SLT_CLC_OUTPUT_NOTICES – Whether to output explanatory notices on the upgrades, themes, and plugins admin pages. SLT_CLC_OUTPUT_NOTICES code> –是否在升级,主题和插件管理页面上输出解释性通知。Default: true默认值: true code> li>SLT_CLC_CORE_NOTICE – Default: "Core upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_CORE_NOTICE code> –默认:“当前已通过Control Live Changes插件在此服务器上禁用核心升级。” code> li>SLT_CLC_PLUGIN_THEME_NOTICE – Default: "Plugin and theme upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_PLUGIN_THEME_NOTICE code> –默认值:“当前通过Control Live Changes插件在此服务器上禁用插件和主题升级。” code> li> ul>An alternative to the SLT_CLC_LOCAL_STRING check for a local environment is the WP_LOCAL_DEV constant. WP_LOCAL_DEV code>常量是 SLT_CLC_LOCAL_STRING code>检查本地环境的替代方法。 This is used by Mark Jaquith in his technique for defining local database connection details in a separate file (http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/).Mark Jaquith在其用于在单独文件(http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/)中定义本地数据库连接详细信息的技术中使用此方法。If WP_LOCAL_DEV is set to true, the SLT_CLC_LOCAL_STRING check is made irrelevant.如果将 WP_LOCAL_DEV code>设置为true,则将使 SLT_CLC_LOCAL_STRING code>检查不相关。 p>Development code hosted at GitHub.托管在 GitHub 上的开发代码。 p>
>).
>)。
If the environment isn’t local, plugin and theme installation, editing and upgrades are disabled.
如果环境不是本地环境,则将禁用插件和主题安装,编辑和升级。 p>
The following constants can be defined in wp-config.php to override the defaults:
wp-config.php
可以在 wp-config.php code>中定义以下常量以覆盖默认值: p>SLT_CLC_LOCAL_STRING – The string to search for in $_SERVER['HTTP_HOST'] that will indicate a local development environment. SLT_CLC_LOCAL_STRING code> –在 $ _ SERVER ['HTTP_HOST'] code>中搜索的字符串,它将指示本地开发环境。Default: "localhost"默认值:“ localhost” code> li>SLT_CLC_DISABLE_REMOTE_CORE_UPGRADES – Default: false SLT_CLC_DISABLE_REMOTE_CORE_UPGRADES code> –默认值: false code> li>SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES – This will also disable editing plugin and theme files via the admin interface. SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES code> –这还将通过管理界面禁用编辑插件和主题文件。Default: true默认值: true code> li>SLT_CLC_OUTPUT_NOTICES – Whether to output explanatory notices on the upgrades, themes, and plugins admin pages. SLT_CLC_OUTPUT_NOTICES code> –是否在升级,主题和插件管理页面上输出解释性通知。Default: true默认值: true code> li>SLT_CLC_CORE_NOTICE – Default: "Core upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_CORE_NOTICE code> –默认:“当前已通过Control Live Changes插件在此服务器上禁用核心升级。” code> li>SLT_CLC_PLUGIN_THEME_NOTICE – Default: "Plugin and theme upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_PLUGIN_THEME_NOTICE code> –默认值:“当前通过Control Live Changes插件在此服务器上禁用插件和主题升级。” code> li> ul>An alternative to the SLT_CLC_LOCAL_STRING check for a local environment is the WP_LOCAL_DEV constant. WP_LOCAL_DEV code>常量是 SLT_CLC_LOCAL_STRING code>检查本地环境的替代方法。 This is used by Mark Jaquith in his technique for defining local database connection details in a separate file (http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/).Mark Jaquith在其用于在单独文件(http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/)中定义本地数据库连接详细信息的技术中使用此方法。If WP_LOCAL_DEV is set to true, the SLT_CLC_LOCAL_STRING check is made irrelevant.如果将 WP_LOCAL_DEV code>设置为true,则将使 SLT_CLC_LOCAL_STRING code>检查不相关。 p>Development code hosted at GitHub.托管在 GitHub 上的开发代码。 p>
wp-config.php code>中定义以下常量以覆盖默认值: p>SLT_CLC_LOCAL_STRING – The string to search for in $_SERVER['HTTP_HOST'] that will indicate a local development environment. SLT_CLC_LOCAL_STRING code> –在 $ _ SERVER ['HTTP_HOST'] code>中搜索的字符串,它将指示本地开发环境。Default: "localhost"默认值:“ localhost” code> li>SLT_CLC_DISABLE_REMOTE_CORE_UPGRADES – Default: false SLT_CLC_DISABLE_REMOTE_CORE_UPGRADES code> –默认值: false code> li>SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES – This will also disable editing plugin and theme files via the admin interface. SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES code> –这还将通过管理界面禁用编辑插件和主题文件。Default: true默认值: true code> li>SLT_CLC_OUTPUT_NOTICES – Whether to output explanatory notices on the upgrades, themes, and plugins admin pages. SLT_CLC_OUTPUT_NOTICES code> –是否在升级,主题和插件管理页面上输出解释性通知。Default: true默认值: true code> li>SLT_CLC_CORE_NOTICE – Default: "Core upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_CORE_NOTICE code> –默认:“当前已通过Control Live Changes插件在此服务器上禁用核心升级。” code> li>SLT_CLC_PLUGIN_THEME_NOTICE – Default: "Plugin and theme upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_PLUGIN_THEME_NOTICE code> –默认值:“当前通过Control Live Changes插件在此服务器上禁用插件和主题升级。” code> li> ul>An alternative to the SLT_CLC_LOCAL_STRING check for a local environment is the WP_LOCAL_DEV constant. WP_LOCAL_DEV code>常量是 SLT_CLC_LOCAL_STRING code>检查本地环境的替代方法。 This is used by Mark Jaquith in his technique for defining local database connection details in a separate file (http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/).Mark Jaquith在其用于在单独文件(http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/)中定义本地数据库连接详细信息的技术中使用此方法。If WP_LOCAL_DEV is set to true, the SLT_CLC_LOCAL_STRING check is made irrelevant.如果将 WP_LOCAL_DEV code>设置为true,则将使 SLT_CLC_LOCAL_STRING code>检查不相关。 p>Development code hosted at GitHub.托管在 GitHub 上的开发代码。 p>
SLT_CLC_LOCAL_STRING
SLT_CLC_LOCAL_STRING code> –在 $ _ SERVER ['HTTP_HOST'] code>中搜索的字符串,它将指示本地开发环境。Default: "localhost"
$ _ SERVER ['HTTP_HOST'] code>中搜索的字符串,它将指示本地开发环境。Default: "localhost"
Default: "localhost"
"localhost"
默认值:“ localhost” code> li>SLT_CLC_DISABLE_REMOTE_CORE_UPGRADES – Default: false SLT_CLC_DISABLE_REMOTE_CORE_UPGRADES code> –默认值: false code> li>SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES – This will also disable editing plugin and theme files via the admin interface. SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES code> –这还将通过管理界面禁用编辑插件和主题文件。Default: true默认值: true code> li>SLT_CLC_OUTPUT_NOTICES – Whether to output explanatory notices on the upgrades, themes, and plugins admin pages. SLT_CLC_OUTPUT_NOTICES code> –是否在升级,主题和插件管理页面上输出解释性通知。Default: true默认值: true code> li>SLT_CLC_CORE_NOTICE – Default: "Core upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_CORE_NOTICE code> –默认:“当前已通过Control Live Changes插件在此服务器上禁用核心升级。” code> li>SLT_CLC_PLUGIN_THEME_NOTICE – Default: "Plugin and theme upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_PLUGIN_THEME_NOTICE code> –默认值:“当前通过Control Live Changes插件在此服务器上禁用插件和主题升级。” code> li>
“ localhost” code> li>SLT_CLC_DISABLE_REMOTE_CORE_UPGRADES – Default: false SLT_CLC_DISABLE_REMOTE_CORE_UPGRADES code> –默认值: false code> li>SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES – This will also disable editing plugin and theme files via the admin interface. SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES code> –这还将通过管理界面禁用编辑插件和主题文件。Default: true默认值: true code> li>SLT_CLC_OUTPUT_NOTICES – Whether to output explanatory notices on the upgrades, themes, and plugins admin pages. SLT_CLC_OUTPUT_NOTICES code> –是否在升级,主题和插件管理页面上输出解释性通知。Default: true默认值: true code> li>SLT_CLC_CORE_NOTICE – Default: "Core upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_CORE_NOTICE code> –默认:“当前已通过Control Live Changes插件在此服务器上禁用核心升级。” code> li>SLT_CLC_PLUGIN_THEME_NOTICE – Default: "Plugin and theme upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_PLUGIN_THEME_NOTICE code> –默认值:“当前通过Control Live Changes插件在此服务器上禁用插件和主题升级。” code> li>
SLT_CLC_DISABLE_REMOTE_CORE_UPGRADES
false
SLT_CLC_DISABLE_REMOTE_CORE_UPGRADES code> –默认值: false code> li>SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES – This will also disable editing plugin and theme files via the admin interface. SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES code> –这还将通过管理界面禁用编辑插件和主题文件。Default: true默认值: true code> li>SLT_CLC_OUTPUT_NOTICES – Whether to output explanatory notices on the upgrades, themes, and plugins admin pages. SLT_CLC_OUTPUT_NOTICES code> –是否在升级,主题和插件管理页面上输出解释性通知。Default: true默认值: true code> li>SLT_CLC_CORE_NOTICE – Default: "Core upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_CORE_NOTICE code> –默认:“当前已通过Control Live Changes插件在此服务器上禁用核心升级。” code> li>SLT_CLC_PLUGIN_THEME_NOTICE – Default: "Plugin and theme upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_PLUGIN_THEME_NOTICE code> –默认值:“当前通过Control Live Changes插件在此服务器上禁用插件和主题升级。” code> li>
false code> li>SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES – This will also disable editing plugin and theme files via the admin interface. SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES code> –这还将通过管理界面禁用编辑插件和主题文件。Default: true默认值: true code> li>SLT_CLC_OUTPUT_NOTICES – Whether to output explanatory notices on the upgrades, themes, and plugins admin pages. SLT_CLC_OUTPUT_NOTICES code> –是否在升级,主题和插件管理页面上输出解释性通知。Default: true默认值: true code> li>SLT_CLC_CORE_NOTICE – Default: "Core upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_CORE_NOTICE code> –默认:“当前已通过Control Live Changes插件在此服务器上禁用核心升级。” code> li>SLT_CLC_PLUGIN_THEME_NOTICE – Default: "Plugin and theme upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_PLUGIN_THEME_NOTICE code> –默认值:“当前通过Control Live Changes插件在此服务器上禁用插件和主题升级。” code> li>
SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES
SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES code> –这还将通过管理界面禁用编辑插件和主题文件。Default: true
Default: true
true
默认值: true code> li>SLT_CLC_OUTPUT_NOTICES – Whether to output explanatory notices on the upgrades, themes, and plugins admin pages. SLT_CLC_OUTPUT_NOTICES code> –是否在升级,主题和插件管理页面上输出解释性通知。Default: true默认值: true code> li>SLT_CLC_CORE_NOTICE – Default: "Core upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_CORE_NOTICE code> –默认:“当前已通过Control Live Changes插件在此服务器上禁用核心升级。” code> li>SLT_CLC_PLUGIN_THEME_NOTICE – Default: "Plugin and theme upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_PLUGIN_THEME_NOTICE code> –默认值:“当前通过Control Live Changes插件在此服务器上禁用插件和主题升级。” code> li>
true code> li>SLT_CLC_OUTPUT_NOTICES – Whether to output explanatory notices on the upgrades, themes, and plugins admin pages. SLT_CLC_OUTPUT_NOTICES code> –是否在升级,主题和插件管理页面上输出解释性通知。Default: true默认值: true code> li>SLT_CLC_CORE_NOTICE – Default: "Core upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_CORE_NOTICE code> –默认:“当前已通过Control Live Changes插件在此服务器上禁用核心升级。” code> li>SLT_CLC_PLUGIN_THEME_NOTICE – Default: "Plugin and theme upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_PLUGIN_THEME_NOTICE code> –默认值:“当前通过Control Live Changes插件在此服务器上禁用插件和主题升级。” code> li>
SLT_CLC_OUTPUT_NOTICES
SLT_CLC_OUTPUT_NOTICES code> –是否在升级,主题和插件管理页面上输出解释性通知。Default: true
默认值: true code> li>SLT_CLC_CORE_NOTICE – Default: "Core upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_CORE_NOTICE code> –默认:“当前已通过Control Live Changes插件在此服务器上禁用核心升级。” code> li>SLT_CLC_PLUGIN_THEME_NOTICE – Default: "Plugin and theme upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_PLUGIN_THEME_NOTICE code> –默认值:“当前通过Control Live Changes插件在此服务器上禁用插件和主题升级。” code> li>
true code> li>SLT_CLC_CORE_NOTICE – Default: "Core upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_CORE_NOTICE code> –默认:“当前已通过Control Live Changes插件在此服务器上禁用核心升级。” code> li>SLT_CLC_PLUGIN_THEME_NOTICE – Default: "Plugin and theme upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_PLUGIN_THEME_NOTICE code> –默认值:“当前通过Control Live Changes插件在此服务器上禁用插件和主题升级。” code> li>
SLT_CLC_CORE_NOTICE
"Core upgrades are currently disabled on this server by the Control Live Changes plugin."
SLT_CLC_CORE_NOTICE code> –默认:“当前已通过Control Live Changes插件在此服务器上禁用核心升级。” code> li>SLT_CLC_PLUGIN_THEME_NOTICE – Default: "Plugin and theme upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_PLUGIN_THEME_NOTICE code> –默认值:“当前通过Control Live Changes插件在此服务器上禁用插件和主题升级。” code> li>
“当前已通过Control Live Changes插件在此服务器上禁用核心升级。” code> li>SLT_CLC_PLUGIN_THEME_NOTICE – Default: "Plugin and theme upgrades are currently disabled on this server by the Control Live Changes plugin." SLT_CLC_PLUGIN_THEME_NOTICE code> –默认值:“当前通过Control Live Changes插件在此服务器上禁用插件和主题升级。” code> li>
SLT_CLC_PLUGIN_THEME_NOTICE
"Plugin and theme upgrades are currently disabled on this server by the Control Live Changes plugin."
SLT_CLC_PLUGIN_THEME_NOTICE code> –默认值:“当前通过Control Live Changes插件在此服务器上禁用插件和主题升级。” code> li>
“当前通过Control Live Changes插件在此服务器上禁用插件和主题升级。” code> li>
ul>
An alternative to the SLT_CLC_LOCAL_STRING check for a local environment is the WP_LOCAL_DEV constant.
WP_LOCAL_DEV code>常量是 SLT_CLC_LOCAL_STRING code>检查本地环境的替代方法。 This is used by Mark Jaquith in his technique for defining local database connection details in a separate file (http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/).Mark Jaquith在其用于在单独文件(http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/)中定义本地数据库连接详细信息的技术中使用此方法。If WP_LOCAL_DEV is set to true, the SLT_CLC_LOCAL_STRING check is made irrelevant.如果将 WP_LOCAL_DEV code>设置为true,则将使 SLT_CLC_LOCAL_STRING code>检查不相关。 p>Development code hosted at GitHub.托管在 GitHub 上的开发代码。 p>
SLT_CLC_LOCAL_STRING code>检查本地环境的替代方法。 This is used by Mark Jaquith in his technique for defining local database connection details in a separate file (http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/).Mark Jaquith在其用于在单独文件(http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/)中定义本地数据库连接详细信息的技术中使用此方法。If WP_LOCAL_DEV is set to true, the SLT_CLC_LOCAL_STRING check is made irrelevant.如果将 WP_LOCAL_DEV code>设置为true,则将使 SLT_CLC_LOCAL_STRING code>检查不相关。 p>Development code hosted at GitHub.托管在 GitHub 上的开发代码。 p>
This is used by Mark Jaquith in his technique for defining local database connection details in a separate file (http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/).
Mark Jaquith在其用于在单独文件(http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/)中定义本地数据库连接详细信息的技术中使用此方法。
If WP_LOCAL_DEV is set to true, the SLT_CLC_LOCAL_STRING check is made irrelevant.
如果将 WP_LOCAL_DEV code>设置为true,则将使 SLT_CLC_LOCAL_STRING code>检查不相关。 p>Development code hosted at GitHub.托管在 GitHub 上的开发代码。 p>
WP_LOCAL_DEV code>设置为true,则将使 SLT_CLC_LOCAL_STRING code>检查不相关。 p>Development code hosted at GitHub.托管在 GitHub 上的开发代码。 p>
SLT_CLC_LOCAL_STRING code>检查不相关。 p>Development code hosted at GitHub.托管在 GitHub 上的开发代码。 p>
Development code hosted at GitHub.
托管在 GitHub 上的开发代码。 p>
control-live-changes
/wp-content/plugins/
control-live-changes code>目录上载到 / wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>If necessary, define constants in wp-config.php to override the plugin defaults – see the Description for details.如有必要,请在 wp-config.php code>中定义常量以覆盖插件默认设置-有关详细信息,请参见说明。 li>
/ wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>If necessary, define constants in wp-config.php to override the plugin defaults – see the Description for details.如有必要,请在 wp-config.php code>中定义常量以覆盖插件默认设置-有关详细信息,请参见说明。 li>
wp-config.php code>中定义常量以覆盖插件默认设置-有关详细信息,请参见说明。 li>
ol>
NOTE: Instead of the above, you may want to drop the control-live-changes.php file into the /wp-content/mu-plugins/ directory
control-live-changes.php
/wp-content/mu-plugins/
注意:您可能希望将 control-live-changes.php code>文件拖放到 / wp-content / mu-plugins / code>目录中to ensure that no one deactivates this plugin!确保没有人停用此插件! p>
control-live-changes.php code>文件拖放到 / wp-content / mu-plugins / code>目录中to ensure that no one deactivates this plugin!确保没有人停用此插件! p>
/ wp-content / mu-plugins / code>目录中to ensure that no one deactivates this plugin!确保没有人停用此插件! p>
to ensure that no one deactivates this plugin!
确保没有人停用此插件! p>
原文出处:http://www.sanshu.cn/a/8624.html
群主管理都是支付大佬