WPML
Estado
Resuelto
Notificado para
WPML Multilingual CMS 3.2.2
Resuelto en
3.2.3

Resumen del problema

Al intentar establecer «Esta es una traducción de» de una entrada en «-Ninguna-», no se guarda. Solo es posible cambiarlo a otra entrada.

Solución alternativa

Siga estos pasos:

  1. Localice la función «save_post_actions» en el archivo «inc/post-translation/wpml-admin-post-actions.class.php».
  2. Busque el siguiente bloque de código:
    $trid = isset( $trid ) && $trid ? $trid : $this->get_save_post_trid ( $post_id, $post->post_status );
    // after getting the right trid set the source language from it by referring to the root translation
    // of this trid, in case no proper source language has been set yet
    $source_language = isset( $source_language ) ? $source_language : $this->get_save_post_source_lang ( $trid, $language_code, $default_language );
    
  3. Reemplácelo por esto:
    if ( isset( $post_vars[ 'icl_translation_of' ] ) && $post_vars[ 'icl_translation_of' ] == 'none' ) {
    	$trid = null;
    	$source_language = $language_code;
    } else {
    	$trid = isset( $trid ) && $trid ? $trid : $this->get_save_post_trid ( $post_id, $post->post_status );
    	// after getting the right trid set the source language from it by referring to the root translation
    	// of this trid, in case no proper source language has been set yet
    	$source_language = isset( $source_language ) ? $source_language : $this->get_save_post_source_lang ( $trid, $language_code, $default_language );
    }
    

El problema se ha resuelto en la próxima versión.

Todos los problemas conocidos →