A few days after the WordPress 5.0 release, the first security update (5.0.1) has been released which resolves vulnerabilities found in all previous versions of WordPress starting with 3.7. These vulnerabilities allow authors to alter metadata and delete files that they weren’t authorized to. Also, authors could create posts of unauthorized post types with specially crafted input which could be used to take over a site…
WordPress team strongly suggests updating your sites immediately if you haven’t done so already…
If you previously updated your sites to WordPress 5.0, you can easily update to 5.0.1 and you have nothing to worry about, however, what if you are still not ready for the WordPress 5.0 you still need to install this security update. Don’t worry, the WordPress team released this security update for the WordPress 4 branch so you can update your sites to version 4.9.9.
By default, WordPress Core is set to automatically update minor updates. This means that your WordPress 4.9.x websites should automatically update to 4.9.9. But if for any reason, automatic updates are not enabled on your websites, and you can’t update your sites as you normally would, you need to enable the Auto-update feature on your sites by inserting the following code line into the wp-config.php file
define( 'WP_AUTO_UPDATE_CORE', 'minor' );
Here you can find more about the WordPress Core auto updates.
Enable Automatic Update For Minor Updates in Bulk
If you manage multiple WordPress sites, the easiest way to make sure that the Minor updates will be processed automatically is to use the MainWP Code Snippets Extension to define the constant.
To do this,
- Login to your MainWP Dashboard
- Go to the Code Snippets Extension
- Create a New Snippet
- Set the Snippet Title
- Set the Snippet Description
- Make sure that the Snippet Type is set to This Code Snippet goes to the wp-config.php file
define( 'WP_AUTO_UPDATE_CORE', 'minor' );to the code editor field
- Select your sites
- Click the Run Snippet button
That is it. After some time, your WordPress installs will automatically update to 4.9.9.