문제 개요
Advanced Custom Fields Multilingual 2.0 릴리스는 웹사이트의 프런트엔드와 백엔드 모두에 상당한 성능 영향을 미칠 수 있습니다.
임시 해결 방법
진행하기 전에 사이트를 전체 백업하세요.
- …/wp-content/plugins/acfml/classes/Strings/STPluginHooks.php 파일을 여세요.
- 36번 줄을 찾으세요.
- 다음 코드를:
다음과 같이 변경하세요:
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' ] ); }