Symptoms
After the WordPress Toolkit plugin was installed, the below line appears in the wp-config.php files.
Example command to identify the change applied to WordPress configuration files:
grep Toolkit wp-config.php
Expected output:
define('WP_AUTO_UPDATE_CORE', 'minor');// This setting is required
to make sure that WordPress updates can be properly managed in
WordPress Toolkit. Remove this line if this WordPress website is not
managed by WordPress Toolkit anymore.
Description
WordPress toolkit can be installed in a few different ways:
- Automatically ( Toolkit is installed automatically on a server if WordPress Manager was already previously installed when updating to cPanel version 92. )
- Automatically ( When logging in to WHM after upgrading to 92, the feature showcase item can be selected for install )
- Manual ( Running the installation script for WordPress Toolkit )
This option was added to allow update settings to be controlled by WordPress Toolkit. We've reported this issue to developers, and a change was made to update this functionality. This change was applied in version WordPress Toolkit 5.2.4.
- WPT 5.2.4 released on December 23, 2020
Workaround
To identify WordPress installs currently affected by this issue, please use the below command:
for domain in `cat /etc/userdatadomains |cut -d"=" -f9`; do find $domain -type f -name wp-config.php -exec grep -H Toolkit {} \;;done
To revert this change for WordPress Toolkit versions installed before 5.2.4, the below command can be used.
curl -s https://raw.githubusercontent.com/CpanelInc/wpt-misc/main/remove-wp-auto-update-core-config-option.sh|bash -s ($path to wordpress home directory)
Note: Be sure to replace "($path to WordPress home directory)" with the account's directory containing WordPress.
Comments
0 comments
Article is closed for comments.