WPML
สถานะ
เปิด
รายงานสำหรับ
WPML Multilingual CMS 4.6.6
แท็กหัวข้อ
Bug

ภาพรวมของปัญหา

ด้วย WPML คุณสามารถเพิ่มนักแปลแต่ละรายเป็นผู้ใช้ในไซต์ของคุณ กำหนดคู่ภาษา จากนั้นมอบหมายงานแปลให้พวกเขาในการจัดการการแปล อย่างไรก็ตาม นักแปลที่มีบทบาท Editor ของ WordPress สามารถทำสำเนาโพสต์ไปยังภาษาที่ไม่อยู่ในคู่ภาษาที่ได้รับมอบหมายได้

วิธีแก้ปัญหาชั่วคราว

โปรดตรวจสอบให้แน่ใจว่าได้ทำการสำรองข้อมูลแบบเต็มของไซต์ของคุณก่อนดำเนินการต่อ


  • เปิดไฟล์ …/wp-content/plugins/sitepress-multilingual-cms/menu/post-menus/post-edit-screen/wpml-meta-boxes-post-edit-html.class.php

  • ค้นหาบรรทัดที่ 524

  • แทนที่: if ( $translation_status && $translation_status < ICL_TM_COMPLETE ) {

  • ด้วย: $lang_from = trim(implode(array_keys($translations)));
    $lang_to = $lang["code"];
    $userlanguages = get_user_meta(get_current_user_id(),$this->sitepress->wpdb()->prefix . 'language_pairs',true );
    foreach ($userlanguages as $from => $to ) {
    $set_to_disable = true;
    if ($lang_from == $from){
    if ($lang_to == trim(implode(array_keys($to)))){
    $set_to_disable = false;
    }
    }
    }
    if ( $translation_status && $translation_status < ICL_TM_COMPLETE || $set_to_disable ) {

ปัญหาที่ทราบแล้วทั้งหมด →