Author: Inpsyde GmbH, toscho, tf
Inheritance: implements Mlp_Updatable
/**
 * @param Inpsyde_Property_List_Interface $data Plugin data.
 *
 * @return bool
 */
function mlp_feature_term_translator(Inpsyde_Property_List_Interface $data)
{
    $taxonomy = empty($_REQUEST['taxonomy']) ? '' : (string) $_REQUEST['taxonomy'];
    $term_taxonomy_id = empty($_REQUEST['tag_ID']) ? 0 : (int) $_REQUEST['tag_ID'];
    $controller = new Mlp_Term_Translation_Controller($data->get('content_relations'), new WPNonce("save_{$taxonomy}_translations_{$term_taxonomy_id}"));
    return $controller->setup();
}
/**
 * @param Inpsyde_Property_List_Interface $data Plugin data.
 *
 * @return bool
 */
function mlp_feature_term_translator(Inpsyde_Property_List_Interface $data)
{
    $controller = new Mlp_Term_Translation_Controller($data->get('content_relations'));
    return $controller->setup();
}