- Trạng thái
- Đã giải quyết
- Được báo cáo cho
- WPML Multilingual CMS 4.6.9
- Plugin/giao diện liên quan
- Pro
- Thẻ chủ đề
- Compatibility
Tổng quan về lỗi
Việc dịch các trang được tạo bằng trình soạn thảo Cornerstone thông qua Trình soạn thảo WordPress gốc có thể dẫn đến sự cố nội dung đã dịch bị thay thế bằng nội dung ở ngôn ngữ gốc khi lưu.
Giải pháp tạm thời
Vui lòng đảm bảo đã tạo bản sao lưu đầy đủ cho trang web của bạn trước khi tiếp tục.
- Mở tệp …/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/compatibility/class-wpml-page-builders-update.php.
- Tìm dòng 27.
- Thay thế:
public function save( $post_id, $original_post_id, $converted_data ) { $this->save_data( $post_id, $this->data_settings->get_fields_to_save(), $this->data_settings->prepare_data_for_saving( $converted_data ) ); $this->copy_meta_fields( $post_id, $original_post_id, $this->data_settings->get_fields_to_copy() ); } - Bằng:
public function save( $post_id, $original_post_id, $converted_data ) { $this->save_data( $post_id, $this->data_settings->get_fields_to_save(), $this->data_settings->prepare_data_for_saving( $converted_data ) ); if (WPML_PB_Last_Translation_Edit_Mode::is_native_editor( $post_id )) { $this->copy_meta_fields( $post_id, $original_post_id, array( '_cornerstone_settings', '_cornerstone_version' ) ); } else { $this->copy_meta_fields( $post_id, $original_post_id, $this->data_settings->get_fields_to_copy() ); } }