WPML

問題の概要

Advanced Custom Fields Multilingual 2.0リリースは、フロントエンドとバックエンドの両方で、お使いのサイトのパフォーマンスに大きな影響を与える可能性があります。

回避策

続行する前に、サイトの完全なバックアップを必ず作成してください。

  1. …/wp-content/plugins/acfml/classes/Strings/STPluginHooks.phpファイルを開きます。
  2. 36行目を探します。
  3. 以下の部分を:
    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' ] );
    }
注:カスタムフィールドの設定ページを再度読み込む必要がある場合があります。

すべての既知の問題