Übersicht über das Problem
Die Version 2.0 von Advanced Custom Fields Multilingual kann erhebliche Auswirkungen auf die Performance Ihrer Website haben, sowohl im Frontend als auch im Backend.
Problemumgehung
Bitte stellen Sie sicher, dass Sie ein vollständiges Backup Ihrer Website haben, bevor Sie fortfahren.
- Öffnen Sie die Datei …/wp-content/plugins/acfml/classes/Strings/STPluginHooks.php.
- Suchen Sie nach Zeile 36.
- Ändern Sie:
in:
if ( $this->needsRegistration() ) { Hooks::onAction( 'wp_loaded' ) ->then( [ $this, 'maybeRegisterFieldGroupsStrings' ] ); } else { $this->setPluginStatus( self::PLUGIN_STATUS_DEACTIVATED ); }if ( ! defined( 'WPML_ST_VERSION' ) ) { $this->setPluginStatus( self::PLUGIN_STATUS_DEACTIVATED ); } if ( $this->needsRegistration() ) { Hooks::onAction( 'wp_loaded' ) ->then( [ $this, 'maybeRegisterFieldGroupsStrings' ] ); }