I do not know the hands of the cheap, the VPS server PHP upgrade to 7.0, although 7.x and previous compatibility is very high, but removed a lot of outdated usage, and some old applications are still in use. To the personal WordPress site errors, corrections recorded as follows. All is plugin, WordPress official program, is no problem.
Mysql_escape_string () function changed to Addslashes ()
Wp-thread-comment plug-in wp-content/plugins/wordpress-thread-comment/wp-thread-comment.php have multiple places
Mysql_* series functions are removed in PHP7, so it is recommended to search all the files for mysql_query, Mysql_escape_, Mysql_real_eacape and other functions, such as: Grep-r mysql_query/path/ To/your/site
Change the split () function to explode ()
Auto-save-image plug-in wp-content/plugins/auto-save-image/auto-save-image.php 122 lines
Syntax compatible
Configure SMTP Plug-in wp-content/plugins/configure-smtp/configure-smtp.php 171 rows, adding default values for function definitions
Public Function options_page_description ($localized _heading_text = ") {
Ps:wordpress Tip: Manual restore to old version/update to latest edition
WordPress backstage can generally be directly upgraded, but there are some situations that could not automatically upgrade, so, the initiative to simply say a WordPress manual restore to the old version and WordPress manual update to the latest method, in fact, the operation is the same, Can be said to be manually updated to any version.
WordPress revert to old version
WordPress Update is more frequent, but some themes and plug-ins update does not keep up with speed, so when you update WordPress, you may find and now use the theme or plugin conflict, this time, you may consider to restore WordPress to the old version.
WordPress Restore to the old version, you can install the old version of the new, but, in this way, your original plugin or theme of some of the settings options will expire, so, the initiative recommended, manual operation to restore the old version.
1. Download the corresponding old version of WordPress
Download the language version you are currently using (that is, if you use the official Chinese version, download the old version of the official Chinese, if it is the original English version)
2. Replace the WordPress program files
(1) Unzip the old version of the download, and then delete the extracted Wp-content folder, using FTP to upload other files to overwrite the original file.
Note: The host Space Wp-content folder has themes and plugins and other files, the root of the wp-config.php inside is the wordpress configuration file, remember not to overwrite these files!!
(2) Visit http://Your URL/wp-admin/, wait a moment will appear a page, prompting you need to update the database, click Update, you can revert to the old version of WordPress.
WordPress Manual update to the latest version
WordPress Update to the latest version of the operation and the above is the same, the difference is that you download the version is the latest edition can be. With manual operation, you can change to any version (of course, if the version gap is too large and the database structure is different, it may not be successful)
The above describes the PHP version upgrade to 7x WordPress Some of the changes and WordPress skills, including the aspects of the content, I hope that the PHP tutorial interested friends helpful.