Baidu Sitemap Generator Plugin Causes Blank Pages in WordPress 4.2
After upgrading WordPress to version 4.2 a while ago, I noticed that publishing posts resulted in a blank page, with no information provided by /wp-admin/post.php. A quick online search suggested that the official Baidu Sitemap Submit plugin was the culprit. However, deactivating this plugin did not resolve the issue, as the blank page persisted when attempting to publish.

To investigate further, I enabled debug mode by modifying wp-config.php to include define('WP_DEBUG', true);. This revealed the following error message:
Notice: Since version 2.0, passing a single argument to
has_capis no longer recommended. User level usage in plugins and themes is deprecated. Please switch to roles and capabilities. inD:\wwwroot\hellyhua\wwwroot\wp-includes\functions.phpon line 3006
This led me to suspect a conflict between WordPress 4.2 and one of the installed plugins. I proceeded to isolate the issue by deactivating plugins one by one. Upon disabling the Baidu Sitemap Generator plugin, the error message disappeared. I then attempted to publish a new post, which succeeded immediately without any blank pages. This confirmed that the Baidu Sitemap Generator plugin is incompatible with WordPress 4.2.
If you have upgraded to WordPress 4.2 and are using this plugin, it is recommended to deactivate it to prevent blank pages when publishing posts.
The latest version of the Baidu Sitemap Generator plugin is 1.5, developed by Liu Cheng. Its function is to generate an XML sitemap. However, this plugin has not been updated to support the latest WordPress versions, leading to this compatibility issue. This problem should not occur in WordPress versions prior to 4.2.