Home > Article > Backend Development > Some wordpress modifications and wordpress tips after upgrading PHP version to 7.x, _PHP tutorial
The wp-thread-comment plug-in wp-content/plugins/wordpress-thread-comment/wp-thread-comment.php has multiple places
The mysql_* series of functions have all been removed in php7, so it is recommended to search for mysql_query, mysql_escape_, mysql_real_eacape and other functions in all files, such as: grep -r mysql_query /path/to/your/siteThe split() function is changed to explode()
auto-save-image plug-in wp-content/plugins/auto-save-image/auto-save-image.php line 122
Syntax compatibleConfigure SMTP plug-in wp-content/plugins/configure-smtp/configure-smtp.php line 171, add default value to function definition
public function options_page_description( $localized_heading_text = '' ) {PS: WordPress Tips: Manually restore to old version/update to latest version
The WordPress backend can generally be directly upgraded with one click, but there are some situations that prevent automatic upgrade. Therefore, Changmeng will briefly talk about how to manually restore WordPress to the old version and manually update WordPress to the latest version. In fact, the operations are all It's the same, it can be said to be manually updated to any version.
WordPress Revert to Older VersionWordPress is updated relatively frequently, but some themes and plug-ins are not updated at the same speed, so when you update WordPress, you may find that it conflicts with the theme or plug-in you are currently using. At this time, you may consider Restore wordpress to an old version.
To restore WordPress to the old version, you can reinstall the old version. However, in this case, some settings of your original plug-ins or themes will become invalid. Therefore, Changmeng recommends manual operation to restore the old version.
1. Download the corresponding old version of WordPress
Download the language version you are currently using (i.e. if you use the official Chinese version, download the old official Chinese version, if it is the original English version, download the old English version)
2. Replace WordPress program files
(1) Unzip the downloaded old version, then delete the unzipped wp-content folder, and use FTP to upload other files to overwrite the original files.
Note: The wp-content folder in the host space contains files such as themes and plug-ins. The wp-config.php in the root directory contains the WordPress configuration file. Remember not to overwrite these files! !(2) Visit http://yourwebsite/wp-admin/. A page will appear after a while, prompting you that you need to update the database. Click Update to restore to the old version of wordpress.
Manually update WordPress to the latest version
The operation of updating WordPress to the latest version is the same as above. The difference is that the version you download is the latest version. You can change to any version using manual operation (of course, if the version gap is too big and the database structure is different, it may not succeed)
Articles you may be interested in: