Resolved
Reported for: Advanced Custom Fields Multilingual 2.0.3
Resolved in: 2.0.4
Overview of the issue
The Advanced Custom Fields Multilingual 2.0 release may cause a considerable performance impact on your website, in both the front-end and backend.
Workaround
Please, make sure to have a full backup of your site before proceeding.
- Open …/wp-content/plugins/acfml/classes/Strings/STPluginHooks.php file.
- Look for line 36.
- Change:
if ( $this->needsRegistration() ) { Hooks::onAction( 'wp_loaded' ) ->then( [ $this, 'maybeRegisterFieldGroupsStrings' ] ); } else { $this->setPluginStatus( self::PLUGIN_STATUS_DEACTIVATED ); }
To:
if ( ! defined( 'WPML_ST_VERSION' ) ) { $this->setPluginStatus( self::PLUGIN_STATUS_DEACTIVATED ); } if ( $this->needsRegistration() ) { Hooks::onAction( 'wp_loaded' ) ->then( [ $this, 'maybeRegisterFieldGroupsStrings' ] ); }
Note: you might need to reload the Custom fields settings page again.