نظرة عامة على المشكلة
لا يتم نسخ المسافات الفارغة المُنفّذة باستخدام مسافات غير قابلة للكسر في BeBuilder الخاص بـ BeTheme إلى النسخ المترجمة من الصفحات.
حل بديل مؤقت
تم إصلاح هذه المشكلة. يحل التحديث إلى أحدث إصدار المشكلة على موقعك، لذا لا تحتاج إلى هذا الحل البديل المؤقت إلا إذا لم تتمكن من التحديث بعد.
يُرجى التأكد من أخذ نسخة احتياطية كاملة لموقعك قبل المتابعة.
- افتح الملف …/wp-content/themes/betheme/functions/theme-functions.php.
- ابحث عن السطر 3784.
- استبدل هذا الكود:
/* * WPML | Workaround for compsupp-5901 */ function mfn_wpml_encode_custom_field( $custom_field_val, $custom_field_name ) { if ( $custom_field_name === 'mfn-page-items' ) { $custom_field_val = maybe_unserialize( base64_decode($custom_field_val) ); } return $custom_field_val; } add_filter( 'wpml_encode_custom_field', 'mfn_wpml_encode_custom_field', 10, 2 ); function mfn_wpml_decode_custom_field( $custom_field_val, $custom_field_name ) { if ( $custom_field_name === 'mfn-page-items' ) { $custom_field_val = base64_encode( serialize($custom_field_val) ); } return $custom_field_val; } add_filter( 'wpml_decode_custom_field', 'mfn_wpml_decode_custom_field', 10, 2 ); - بالكود التالي:
/* * WPML | Workaround for compsupp-12016 */ function mfn_wpml_encode_custom_field( $custom_field_val, $custom_field_name ) { if ( $custom_field_name === 'mfn-page-items' ) { $custom_field_val = mb_convert_encoding($custom_field_val, 'UTF-8', 'auto'); $custom_field_val = base64_encode( serialize($custom_field_val) ); } return $custom_field_val; } add_filter( 'wpml_encode_custom_field', 'mfn_wpml_encode_custom_field', 10, 2 ); function mfn_wpml_decode_custom_field( $custom_field_val, $custom_field_name ) { if ( $custom_field_name === 'mfn-page-items' && is_string($custom_field_val) ) { $custom_field_val = mb_convert_encoding($custom_field_val, 'UTF-8', 'auto'); $custom_field_val = maybe_unserialize( base64_decode($custom_field_val) ); } return $custom_field_val; } add_filter( 'wpml_decode_custom_field', 'mfn_wpml_decode_custom_field', 10, 2 );