WPML

Panoramica del problema

La versione 2.0 di Advanced Custom Fields Multilingual potrebbe causare un notevole impatto sulle prestazioni del tuo sito web, sia nel front-end che nel back-end.

Soluzione alternativa

Assicurati di avere un backup completo del tuo sito prima di procedere.

  1. Apri il file …/wp-content/plugins/acfml/classes/Strings/STPluginHooks.php.
  2. Cerca la riga 36.
  3. Cambia:
    if ( $this->needsRegistration() ) {
    	Hooks::onAction( 'wp_loaded' )
    		->then( [ $this, 'maybeRegisterFieldGroupsStrings' ] );
    } else {
    	$this->setPluginStatus( self::PLUGIN_STATUS_DEACTIVATED );
    }
    in:
    if ( ! defined( 'WPML_ST_VERSION' ) ) {
    	$this->setPluginStatus( self::PLUGIN_STATUS_DEACTIVATED );
    }
    
    if ( $this->needsRegistration() ) {
    	Hooks::onAction( 'wp_loaded' )
    		->then( [ $this, 'maybeRegisterFieldGroupsStrings' ] );
    }
Nota: potresti dover ricaricare nuovamente la pagina delle impostazioni dei Campi personalizzati.

Tutti i problemi noti