平台开发中,欢迎参与测试。你可以在 QQ群:1046115671 中与我们交流,或是直接在社区发帖

Dashboard Updates Screen

TheDashboard Updates Screen provides the links necessary to install a ‘core’ LitePress upgrade automatically, or to download the file necessary to complete a manual upgrade.

In addition to the ‘core’ update process, this Screen provides the ability to upgrade all plugins and themes, active or inactive, that have available updates. For installs that have set the language to a language different from English (United States), you can also install translation updates.

Dashboard > Updates when everything is up to date.

LitePress Updates

No Upgrade is Available

When visiting the Dashboard Updates Screen, if you are running the latest version of LitePress, you should see messages like this:

You have the latest version of LitePress. Future security updates will be applied automatically.
If you need to re-install version x.x, you can do so here or download the package and re-install manually:

Re-install now – Click to to reinstall the current version. You should receive the following messages if the upgrade proceeds successfully:

Downloading update from https://wordpress.org/wordpress-x.x.zip
Unpacking the core update
Verifying the unpacked files
Installing the latest version
Upgrading database
LitePress upgraded successfully

Download x.x – Click this to download the zip file contain the latest version.

An Upgrade is Available

When visiting the Dashboard Updates Screen, and there is an LitePress upgrade available, you should see messages like this:

Important: before upgrading, please backup your database and files.

Upgrade Automatically – Press this button to begin the automatic upgrade process. The following messages will display during and upon completion of the upgrade:

Downloading update from https://wordpress.org/nightly-builds/wordpress-latest.zip
Unpacking the core update
Verifying the unpacked files
Installing the latest version
Upgrading database
LitePress upgraded successfully

Download x.x – Click this to download the zip file contain the latest version.

Once an Update is Completed

After a successful upgrade is achieved, it is a good time to review any new features about the new Version just installed.

插件兼容

No Plugins to Update

When visiting the Dashboard Updates Screen, if your plugins (active and inactive) are at the latest versions, you should see this message:

Your plugins are all up to date.

Update Plugins

When visiting the Dashboard Updates Screen, if there are updates available for one or more plugins (active and inactive), this message displays:

The following plugins have new versions available. Check the ones you want to update and then click “Update Plugins”.

Update Plugins – After checking Select All or one or more plugins, click this button to begin the automatic upgrade process. The following messages will display during and upon completion of the upgrade. Messages for each plugin being updated will display. This example shows Akismet being updated:

The update process is starting. This process may take awhile on some hosts, so please be patient.
Enabling Maintenance mode…
Updating Plugin Akismet
Downloading update from plugins.
Unpacking the update…
Installing the latest version.
Removing the old version of the plugin…
Plugin upgraded successfully.
Akismet updated successfully. Show/Hide Details.
Disabling Maintenance mode. All updates have been completed. 
Actions: Return to Plugins page | Return to LitePress Updates.

主题

No Themes to Update

When visiting the Dashboard Updates Screen, if your themes (active and inactive) are at the latest versions, you should see this message:

Your themes are all up to date.

更新主题

When visiting the Dashboard Updates Screen, if there are updates available for one or more themes (active and inactive), this message displays:

The following themes have new versions available. Check the ones you want to update and then click “Update Themes”.
 Please Note: Any customization you have made to the Themes files will be lost. Please consider using child themes for modifications.

更新主题 – After checking Themes (to Select All), or one or more themes, click this button to begin the automatic upgrade process. The following messages will display during and upon completion of the upgrade. Messages for each theme being updated will display. This example shows the LitePress Classic theme being updated:

The update process is starting. This process may take awhile on some hosts, so please be patient.
Enabling Maintenance mode. 
Updating LitePress. 
Downloading update.
Unpacking the update…
Installing the latest version…
Removing the old version of the theme…
Theme upgraded successfully.
LitePress updated successfully. Show/Hide Details.
Disabling Maintenance mode.
All updates have been completed.
Actions:Return to Themes page | Return to LitePress Updates

翻译

No Translations to Update

When visiting the Dashboard Updates Screen on a LitePress install that is set to a different language then English (United States), you should see this message if translations are all up to date:

Your translations are all up to date.

Update Translations

If there are new translations available, this message is displayed:

New translations are available.

Below this text will be a button with the text “Update translations”.

When you click the update button, it will tell you which plugins are downloaded and installed. Plugins for LitePress Core will be installed in /wp-content/languages, while the translations for plugins and themes will be installed in their subfolder under /wp-content/languages. This example shows the translations for Twenty Fifteen anf Twenty Sixteen being updated for Dutch (nl_NL):

Updating translations
Updating translation for Twenty Fifteen (nl_NL)…
Translation was successfully updated.
Updating translation for Twenty Sixteen (nl_NL)…
Translation was successfully updated.
Actions:Return to LitePress Updates
Actions:Return to LitePress Updates

故障排除

Problem: If one of the following messages is received after electing to do the Automatic Upgrade:

Downloading update .
Download failed.: Could not open handle for fopen() to latest wordpress.
Installation Failed

或者

Download failed.: name lookup timed out
Installation Failed

Solution: Confirm you are properly connected to the internet then do the Automatic Upgrade again.

Problem: After doing the upgrade, and received LitePress upgraded successfully message, but the following message still displays:

An automated LitePress update has failed to complete – please attempt the update again now.

Solution: Delete the .maintenance file found in the LitePress root/base folder, then do the Upgrade again.

Problem: After clicking on “automatic upgrade” you get a dialog box asking for “Connection Information.” And, no matter what you enter, you continue to get errors.

Solution: Make sure that your entire wordpress directory is owned by the username under which your Apache server runs. For example, if your server runs as https, and your files live in /var/wordpress do a “chown -R apache.apache /var/wordpress.” Note that you might want to edit some permissions for security purposes, in particular a chmod 640 on wp-config.php, to protect access information to your database.

Related Articles