Fixes type 'target taxonomie'.

This commit is contained in:
mateuswetah 2020-05-27 10:53:41 -03:00
parent fc18101722
commit 8d12da2ad4
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class Term_Exporter extends Exporter {
$file = $files['csvvocabularyexporter.csv'];
$taxonomie = \Tainacan\Repositories\Taxonomies::get_instance()->fetch_by_db_identifier( $this->get_option('select_taxonomy') );
if ( !empty($taxonomie) ) {
$message = __('target taxonomie:', 'tainacan');
$message = __('target taxonomy:', 'tainacan');
$message .= " <b>" . $taxonomie->get_name() . "</b><br/>";
}
$message .= __('Your CSV file is ready! Access it in the link below:', 'tainacan');

View File

@ -225,7 +225,7 @@ class Term_Importer extends Importer {
public function get_output() {
$taxonomie = \Tainacan\Repositories\Taxonomies::get_instance()->fetch_by_db_identifier( $this->get_transient('new_taxonomy') );
if ( !empty($taxonomie) ) {
$message = __('target taxonomie:', 'tainacan');
$message = __('target taxonomy:', 'tainacan');
$message .= " <b>" . $taxonomie->get_name() . "</b><br/>";
}
return $message;