After upgrading to WordPress 3.6, I found a lot of the following error messages in the debug log:
Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead.
The meaning of this error message is that WordPress 3.6 will discard the escape method of the $wpdp class if it is set. It is recommended to use the preprae method or the esc_sql method instead. Deprecated means that although this version of this method can be used, it will not be updated in the future until it is deleted, so we will finally modify the plug-in that uses this method. Let your blog upgrade in the future without going wrong.
After a round of investigation, it was found that neither plug-ins nor themes used this function for filtering. Finally, it was found that the problem was caused by the sunrise.php file of Multisites.
However, since the sunrise.php file is referenced before the esc_sql() file is defined, we cannot use the esc_sql() function, and $wpdb->prepare cannot be used in the sunrise.php line. Finally, I found that it can be replaced by the $wpdb->_escape method.
So the final modification is to add the following line in the wp-content/sunrise.php file:
$dm_domain = $wpdb->escape( $_SERVER[ 'HTTP_HOST' ] );
Modify to:
The XGCMS content management system is developed based on the excellent domestic PHP framework XIUNO PHP. In order to develop the XGCMS content management system, the author has had no income for 3 consecutive months. After many days and nights of continuous efforts, the system has finally basically taken shape. A beta version is currently released. I hope everyone Able to provide more opinions and suggestions, feedback on bugs, etc.
I will summarize the functions and features of the XGCMS system later. For now, you can experience it yourself.
【How to install? 】
1. Upload all files in the upload_me directory
2. Set the following directories and files as writable
./upload
./runtime/tmp
./runtime/log
./conf
3. Visit http://www.domain.com/install/ and install according to the prompts (http://www.domain.com/ is your website address).
Official website: http://www.xgcms.com
Communication forum: http://bbs.xgcms.com
Online demonstration: http://www.baydou.com.cn